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

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

本文整理了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

/**
 * {@inheritDoc}
 * <p>This method logs details of the event's exception to a logger.</p>
 *
 * @param event the event holding the exception.
 */
public void onException( final ExceptionEvent event )
{
  if ( event != null )
  {
    this.getLogger().error( event.getException() );
  }
}

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

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

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

/**
 * Gets URLs of all available classpath schema resources.
 *
 * @return URLs of all available classpath schema resources.
 */
private URL[] getSchemaUrls()
{
  if ( this.schemaUrls == null )
  {
    try
    {
      this.schemaUrls = this.getSchemaResources();
    }
    catch ( final IOException e )
    {
      this.getLogger().error( this.getDisabledMessage(
        this.getLocale(), e.getMessage() ) );
      this.schemaUrls = null;
    }
    catch ( final URISyntaxException e )
    {
      this.getLogger().error( this.getDisabledMessage(
        this.getLocale(), e.getMessage() ) );
      this.schemaUrls = null;
    }
  }
  return this.schemaUrls != null ? this.schemaUrls : new URL[ 0 ];
}

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

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

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

/**
 * Test the various logger methods to not throw any exceptions.
 */
public void testLog() throws Exception
{
  assert this.getLogger() != null;
  this.getLogger().debug( "TEST" );
  this.getLogger().debug( new Exception() );
  this.getLogger().error( "TEST" );
  this.getLogger().error( new Exception() );
  this.getLogger().fatal( "TEST" );
  this.getLogger().fatal( new Exception() );
  this.getLogger().info( "TEST" );
  this.getLogger().info( new Exception() );
  this.getLogger().trace( "TEST" );
  this.getLogger().trace( new Exception() );
  this.getLogger().warn( "TEST" );
  this.getLogger().warn( new Exception() );
}

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

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

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

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

相关文章