本文整理了Java中org.jdtaus.core.logging.spi.Logger.info()
方法的一些代码示例,展示了Logger.info()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.info()
方法的具体详情如下:
包路径:org.jdtaus.core.logging.spi.Logger
类名称:Logger
方法名:info
[英]Logs a message at log level info.
[中]以日志级别信息记录消息。
代码示例来源: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/jdtaus-banking-ri-textschluesselverzeichnis
this.getLogger().info( this.getNoJAXPValidationWarningMessage( this.getLocale(), e.getMessage() ) );
xmlFactory.setValidating( false );
代码示例来源:origin: org.jdtaus.banking/jdtaus-banking-ri-textschluesselverzeichnis
this.getLogger().info( this.getChangeInfoMessage( this.getLocale(), file.getAbsolutePath() ) );
this.initialized = false;
break;
this.getLogger().info( this.getTextschluesselInfoMessage(
this.getLocale(), new Integer( this.instances.length ), new Integer( documents.size() ) ) );
代码示例来源:origin: org.jdtaus.banking/jdtaus-banking-ri-bankleitzahlenverzeichnis
/**
* Gets the properties backing the instance.
*
* @return The properties backing the instance.
*
* @throws IOException if loading the properties fails.
*/
public Properties getProperties() throws IOException
{
if ( this.properties == null )
{
this.assertValidProperties();
final String propertiesLocation = this.getClasspathLocation() + "/" + this.getPropertiesResourceName();
final URL rsrc = this.getClassLoader().getResource( propertiesLocation );
final Properties p = new Properties();
if ( rsrc != null )
{
p.load( rsrc.openStream() );
}
else
{
this.getLogger().info( this.getPropertiesNotFoundMessage( this.getLocale(), propertiesLocation ) );
}
this.properties = p;
}
return this.properties;
}
代码示例来源:origin: org.jdtaus.core/jdtaus-core-utilities
/**
* {@inheritDoc}
* <p>This method measures the time a task is running and logs
* information for tasks running longer than specified by configuration
* property {@code loggingThresholdMillis} (defaults to 60000).</p>
*
* @param event the event send by a {@code Task}.
*/
public void onTaskEvent( final TaskEvent event )
{
if ( event != null )
{
final long now = System.currentTimeMillis();
final long start = event.getTask().getTimestamp();
if ( TaskEvent.ENDED == event.getType() &&
now - start > this.getLoggingThresholdMillis() )
{
this.getLogger().info(
this.getDurationInfoMessage(
this.getLocale(),
event.getTask().getDescription().
getText( this.getLocale() ),
new Date( start ),
new Date( now ),
new Long( now - start ) ) );
}
}
}
代码示例来源: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().info(EditorBundle.getSystemPropertiesMessage(
Locale.getDefault()).
format(new Object[] { sysProps }));
getLogger().info(EditorBundle.getModuleInfoMessage(
Locale.getDefault()).format(new Object[] { moduleInfo }));
代码示例来源:origin: org.jdtaus.banking/jdtaus-banking-ri-textschluesselverzeichnis
this.getLogger().info(
this.getNoSchemaLocationMessage( this.getLocale(), resource.toExternalForm() ) );
代码示例来源:origin: org.jdtaus.banking.dtaus/jdtaus-banking-ri-dtaus
this.getLogger().info( this.getReadNumberIllegalFileInfoMessage(
this.getLocale(), logViolation, new Long( ret ) ) );
代码示例来源:origin: org.jdtaus.banking/jdtaus-banking-ri-bankleitzahlenverzeichnis
this.getLogger().info( this.getReloadInfoMessage(
this.getLocale(), new Date( this.lastModifiedMillis ),
new Date( this.provider.getLastModifiedMillis() ) ) );
this.initialized = true;
this.getLogger().info( this.getBankfileInfoMessage(
this.getLocale(), new Long( processedRecords ), new Integer( rsrc.length ) ) );
代码示例来源:origin: org.jdtaus.banking/jdtaus-banking-utilities
this.getLogger().info( this.getBankcodeFileUpgradeInfoMessage(
this.getLocale(), toFormatName( this.format ), toFormatName( file.getFormat() ) ) );
代码示例来源:origin: org.jdtaus.core/jdtaus-core-utilities
this.getLogger().info( event.getMessages()[i].getText(
this.getLocale() ) );
内容来源于网络,如有侵权,请联系作者删除!