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

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

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

Logger.warn介绍

[英]Logs a message at log level warn.
[中]在日志级别记录消息警告。

代码示例

代码示例来源:origin: org.jdtaus.banking/jdtaus-banking-ri-textschluesselverzeichnis

public void warning( final SAXParseException e )
  throws SAXException
{
  getLogger().warn( getParseExceptionMessage(
    getLocale(), resource.toExternalForm(),
    e.getMessage(), new Integer( e.getLineNumber() ),
    new Integer( e.getColumnNumber() ) ) );
}

代码示例来源:origin: org.jdtaus.core.lang/jdtaus-core-memory-manager

/**
 * Forces garbage collection and logs a warning message.
 *
 * @param repetition number of times garbage collection was already forced.
 *
 * @see System#gc()
 */
private void forceGarbageCollection( final int repetition )
{
  this.getLogger().warn( this.getForcingGarbageCollectionMessage(
    this.getLocale(), new Integer( repetition ) ) );
  System.gc();
}

代码示例来源:origin: org.jdtaus.core.lang/jdtaus-core-memory-manager

/**
 * Logs a warning message for out of memory conditions.
 *
 * @param requestedByte number of byte requested to be allocated.
 * @param availableByte number of byte available when {@code requestedByte}
 * were requested.
 */
private void logOutOfMemoryWarning( final Long requestedByte,
                  final Long availableByte )
{
  this.getLogger().warn( this.getOutOfMemoryWarningMessage(
    this.getLocale(), availableByte, requestedByte ) );
}

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

/**
 * Gets the resolvers of the instance.
 *
 * @return the resolvers used for resolving entities.
 */
public EntityResolver[] getResolvers()
{
  if ( this.resolvers == null )
  {
    this.resolvers = this.getDefaultResolvers();
    if ( this.resolvers.length == 0 )
    {
      this.getLogger().warn(
        this.getNoEntityResolversMessage( this.getLocale() ) );
    }
  }
  return (EntityResolver[]) this.resolvers.clone();
}

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

this.getLogger().warn( this.getUnsupportedSystemIdUriMessage(
    this.getLocale(), systemId, systemUri.toASCIIString() ) );
this.getLogger().warn( this.getUnsupportedSystemIdUriMessage(
  this.getLocale(), systemId, e.getMessage() ) );

代码示例来源: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.editor/jdtaus-editor-client-application

getLogger().warn(e);

代码示例来源:origin: org.jdtaus.banking/jdtaus-banking-ri-textschluesselverzeichnis

this.getLogger().warn( this.getNoTextschluesselFoundMessage( this.getLocale() ) );

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

getLogger().warn( this.getUnknownTaskEventTypeMessage(
  this.getLocale(), new Integer( event.getType() ) ) );

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

getLogger().warn( getUnknownMessageEventTypeMessage(
  getLocale(), new Integer( event.getType() ) ) );

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

this.getLogger().warn( event.getMessages()[i].getText(
  this.getLocale() ) );
this.getLogger().warn(
  this.getUnknownMessageEventTypeMessage(
  this.getLocale(),

代码示例来源:origin: org.jdtaus.banking/jdtaus-banking-ri-bankleitzahlenverzeichnis

this.getLogger().warn( this.getNoBankfilesFoundMessage( this.getLocale() ) );

相关文章