org.jdtaus.core.logging.spi.Logger.error()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(650)

本文整理了Java中org.jdtaus.core.logging.spi.Logger.error()方法的一些代码示例,展示了Logger.error()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.error()方法的具体详情如下:
包路径:org.jdtaus.core.logging.spi.Logger
类名称:Logger
方法名:error

Logger.error介绍

[英]Logs a message at log level error.
[中]在日志级别记录消息错误。

代码示例

代码示例来源:origin: org.jdtaus.core/jdtaus-core-utilities

  1. /**
  2. * {@inheritDoc}
  3. * <p>This method logs details of the event's exception to a logger.</p>
  4. *
  5. * @param event the event holding the exception.
  6. */
  7. public void onException( final ExceptionEvent event )
  8. {
  9. if ( event != null )
  10. {
  11. this.getLogger().error( event.getException() );
  12. }
  13. }

代码示例来源:origin: org.jdtaus.core/jdtaus-core-utilities

  1. this.getLogger().error( e );
  2. this.getLogger().error( e );

代码示例来源:origin: org.jdtaus.core.sax/jdtaus-core-entity-resolver

  1. /**
  2. * Gets URLs of all available classpath schema resources.
  3. *
  4. * @return URLs of all available classpath schema resources.
  5. */
  6. private URL[] getSchemaUrls()
  7. {
  8. if ( this.schemaUrls == null )
  9. {
  10. try
  11. {
  12. this.schemaUrls = this.getSchemaResources();
  13. }
  14. catch ( final IOException e )
  15. {
  16. this.getLogger().error( this.getDisabledMessage(
  17. this.getLocale(), e.getMessage() ) );
  18. this.schemaUrls = null;
  19. }
  20. catch ( final URISyntaxException e )
  21. {
  22. this.getLogger().error( this.getDisabledMessage(
  23. this.getLocale(), e.getMessage() ) );
  24. this.schemaUrls = null;
  25. }
  26. }
  27. return this.schemaUrls != null ? this.schemaUrls : new URL[ 0 ];
  28. }

代码示例来源:origin: org.jdtaus.core/jdtaus-core-utilities

  1. getLogger().error( e );
  2. taskEnded.run();

代码示例来源:origin: org.jdtaus.core/jdtaus-core-it

  1. /**
  2. * Test the various logger methods to not throw any exceptions.
  3. */
  4. public void testLog() throws Exception
  5. {
  6. assert this.getLogger() != null;
  7. this.getLogger().debug( "TEST" );
  8. this.getLogger().debug( new Exception() );
  9. this.getLogger().error( "TEST" );
  10. this.getLogger().error( new Exception() );
  11. this.getLogger().fatal( "TEST" );
  12. this.getLogger().fatal( new Exception() );
  13. this.getLogger().info( "TEST" );
  14. this.getLogger().info( new Exception() );
  15. this.getLogger().trace( "TEST" );
  16. this.getLogger().trace( new Exception() );
  17. this.getLogger().warn( "TEST" );
  18. this.getLogger().warn( new Exception() );
  19. }

代码示例来源:origin: org.jdtaus.sequences/jdtaus-sequences-ri-jaxb

  1. this.getLogger().error( e );
  2. this.getLogger().error( e );

代码示例来源:origin: org.jdtaus.core/jdtaus-core-utilities

  1. this.getLogger().error( event.getMessages()[i].getText(
  2. this.getLocale() ) );

相关文章