org.jdtaus.core.logging.spi.Logger类的使用及代码示例

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

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

Logger介绍

[英]Logs events for a specific component.

jDTAUS Core SPI Logger specification to be used by implementations to log technical events.
[中]记录特定组件的事件。
jDTAUS核心SPI记录器规范,用于实现记录技术事件。

代码示例

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

public void start()
{
  super.start();
  if ( getLogger().isDebugEnabled() )
  {
    getLogger().debug( getThreadStartedMessage(
      getLocale(), new Long( this.pollIntervalMillis ) ) );
  }
}

代码示例来源: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.core/jdtaus-core-it

/**
 * Tests the {@link Logger#isInfoEnabled() isXxxEnabled()} methods to not
 * throw any exceptions.
 */
public void testIsEnabled() throws Exception
{
  assert this.getLogger() != null;
  this.getLogger().isDebugEnabled();
  this.getLogger().isErrorEnabled();
  this.getLogger().isFatalEnabled();
  this.getLogger().isInfoEnabled();
  this.getLogger().isTraceEnabled();
  this.getLogger().isWarnEnabled();
}

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

this.getLogger().info( this.getReloadInfoMessage(
    this.getLocale(), new Date( this.lastModifiedMillis ),
    new Date( this.provider.getLastModifiedMillis() ) ) );
if ( this.getLogger().isDebugEnabled() )
      this.getLogger().debug( this.getOutdatedInfoMessage(
        this.getLocale(), record.getBankCode().format( Bankleitzahl.LETTER_FORMAT ) ) );
this.initialized = true;
this.getLogger().info( this.getBankfileInfoMessage(
  this.getLocale(), new Long( processedRecords ), new Integer( rsrc.length ) ) );
this.getLogger().warn( this.getNoBankfilesFoundMessage( this.getLocale() ) );

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

final boolean log = this.getLogger().isDebugEnabled();
final boolean upgrade = this.getFormat() < file.getFormat();
        this.getLogger().debug( this.getAddRecordInfoMessage(
          this.getLocale(), String.valueOf( newVersion.getChangeLabel() ),
          newVersion.getSerialNumber() ) );
        this.getLogger().debug( this.getModifyRecordInfoMessage(
          this.getLocale(), String.valueOf( newVersion.getChangeLabel() ),
          newVersion.getSerialNumber() ) );
    if ( this.getLogger().isInfoEnabled() )
      this.getLogger().info( this.getBankcodeFileUpgradeInfoMessage(
        this.getLocale(), toFormatName( this.format ), toFormatName( file.getFormat() ) ) );
          this.getLogger().debug( this.getRemoveRecordInfoMessage(
            this.getLocale(), String.valueOf( oldVersion.getChangeLabel() ),
            oldVersion.getSerialNumber() ) );

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

schemaSource.setSystemId( urls[i].toExternalForm() );
      if ( this.getLogger().isDebugEnabled() )
        this.getLogger().debug(
          this.getResolvedSystemIdMessage(
          this.getLocale(), systemId,
  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-utilities

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

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

doc = validatingParser.parse( stream );
    else if ( this.getLogger().isInfoEnabled() )
      this.getLogger().info(
        this.getNoSchemaLocationMessage( this.getLocale(), resource.toExternalForm() ) );
this.getLogger().warn( this.getNoTextschluesselFoundMessage( this.getLocale() ) );

代码示例来源: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.banking/jdtaus-banking-ri-textschluesselverzeichnis

/**
 * Adds a resource to the list of resources to monitor for changes.
 *
 * @param url the URL of the resource to monitor for changes.
 *
 * @throws NullPointerException if {@code url} is {@code null}.
 */
private void monitorResource( final URL url )
{
  if ( url == null )
  {
    throw new NullPointerException( "url" );
  }
  try
  {
    final File file = new File( new URI( url.toString() ) );
    this.monitorMap.put( file, new Long( file.lastModified() ) );
    this.getLogger().info( this.getMonitoringInfoMessage( this.getLocale(), file.getAbsolutePath() ) );
  }
  catch ( final IllegalArgumentException e )
  {
    this.getLogger().info( this.getNotMonitoringWarningMessage(
      this.getLocale(), url.toExternalForm(), e.getMessage() ) );
  }
  catch ( final URISyntaxException e )
  {
    this.getLogger().info( this.getNotMonitoringWarningMessage(
      this.getLocale(), url.toExternalForm(), e.getMessage() ) );
  }
}

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

if ( this.getLogger().isInfoEnabled() )
  this.getLogger().info( this.getReadNumberIllegalFileInfoMessage(
    this.getLocale(), logViolation, new Long( ret ) ) );

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

this.filePointer += len;
this.getLogger().debug(
  this.getWriteBypassesCacheMessage(
  this.getLocale(),

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

public void uncaughtException(final Thread t, final Throwable e)
  getLogger().fatal(e);
  String name = EditorBundle.getMissingInformationText(
    Locale.getDefault());

代码示例来源: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.banking/jdtaus-banking-ri-textschluesselverzeichnis

this.getLogger().info( this.getNoJAXPValidationWarningMessage( this.getLocale(), e.getMessage() ) );
xmlFactory.setValidating( false );

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

this.filePointer += len;
this.getLogger().debug(
  this.getReadBypassesCacheMessage(
  this.getLocale(),

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

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

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

if ( this.getLogger().isDebugEnabled() )
  this.getLogger().debug(
    this.getCandidateSchemaMessage(
    this.getLocale(),

代码示例来源: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 ) );
}

相关文章