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

x33g5p2x  于2022-01-28 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(603)

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

Logger.info介绍

[英]Logs a message at log level info.
[中]以日志级别信息记录消息。

代码示例

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

  1. /**
  2. * Adds a resource to the list of resources to monitor for changes.
  3. *
  4. * @param url the URL of the resource to monitor for changes.
  5. *
  6. * @throws NullPointerException if {@code url} is {@code null}.
  7. */
  8. private void monitorResource( final URL url )
  9. {
  10. if ( url == null )
  11. {
  12. throw new NullPointerException( "url" );
  13. }
  14. try
  15. {
  16. final File file = new File( new URI( url.toString() ) );
  17. this.monitorMap.put( file, new Long( file.lastModified() ) );
  18. this.getLogger().info( this.getMonitoringInfoMessage( this.getLocale(), file.getAbsolutePath() ) );
  19. }
  20. catch ( final IllegalArgumentException e )
  21. {
  22. this.getLogger().info( this.getNotMonitoringWarningMessage(
  23. this.getLocale(), url.toExternalForm(), e.getMessage() ) );
  24. }
  25. catch ( final URISyntaxException e )
  26. {
  27. this.getLogger().info( this.getNotMonitoringWarningMessage(
  28. this.getLocale(), url.toExternalForm(), e.getMessage() ) );
  29. }
  30. }

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

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

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

  1. this.getLogger().info( this.getChangeInfoMessage( this.getLocale(), file.getAbsolutePath() ) );
  2. this.initialized = false;
  3. break;
  4. this.getLogger().info( this.getTextschluesselInfoMessage(
  5. this.getLocale(), new Integer( this.instances.length ), new Integer( documents.size() ) ) );

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

  1. /**
  2. * Gets the properties backing the instance.
  3. *
  4. * @return The properties backing the instance.
  5. *
  6. * @throws IOException if loading the properties fails.
  7. */
  8. public Properties getProperties() throws IOException
  9. {
  10. if ( this.properties == null )
  11. {
  12. this.assertValidProperties();
  13. final String propertiesLocation = this.getClasspathLocation() + "/" + this.getPropertiesResourceName();
  14. final URL rsrc = this.getClassLoader().getResource( propertiesLocation );
  15. final Properties p = new Properties();
  16. if ( rsrc != null )
  17. {
  18. p.load( rsrc.openStream() );
  19. }
  20. else
  21. {
  22. this.getLogger().info( this.getPropertiesNotFoundMessage( this.getLocale(), propertiesLocation ) );
  23. }
  24. this.properties = p;
  25. }
  26. return this.properties;
  27. }

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

  1. /**
  2. * {@inheritDoc}
  3. * <p>This method measures the time a task is running and logs
  4. * information for tasks running longer than specified by configuration
  5. * property {@code loggingThresholdMillis} (defaults to 60000).</p>
  6. *
  7. * @param event the event send by a {@code Task}.
  8. */
  9. public void onTaskEvent( final TaskEvent event )
  10. {
  11. if ( event != null )
  12. {
  13. final long now = System.currentTimeMillis();
  14. final long start = event.getTask().getTimestamp();
  15. if ( TaskEvent.ENDED == event.getType() &&
  16. now - start > this.getLoggingThresholdMillis() )
  17. {
  18. this.getLogger().info(
  19. this.getDurationInfoMessage(
  20. this.getLocale(),
  21. event.getTask().getDescription().
  22. getText( this.getLocale() ),
  23. new Date( start ),
  24. new Date( now ),
  25. new Long( now - start ) ) );
  26. }
  27. }
  28. }

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

  1. getLogger().info(EditorBundle.getSystemPropertiesMessage(
  2. Locale.getDefault()).
  3. format(new Object[] { sysProps }));
  4. getLogger().info(EditorBundle.getModuleInfoMessage(
  5. Locale.getDefault()).format(new Object[] { moduleInfo }));

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

  1. this.getLogger().info(
  2. this.getNoSchemaLocationMessage( this.getLocale(), resource.toExternalForm() ) );

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

  1. this.getLogger().info( this.getReadNumberIllegalFileInfoMessage(
  2. this.getLocale(), logViolation, new Long( ret ) ) );

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

  1. this.getLogger().info( this.getReloadInfoMessage(
  2. this.getLocale(), new Date( this.lastModifiedMillis ),
  3. new Date( this.provider.getLastModifiedMillis() ) ) );
  4. this.initialized = true;
  5. this.getLogger().info( this.getBankfileInfoMessage(
  6. this.getLocale(), new Long( processedRecords ), new Integer( rsrc.length ) ) );

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

  1. this.getLogger().info( this.getBankcodeFileUpgradeInfoMessage(
  2. this.getLocale(), toFormatName( this.format ), toFormatName( file.getFormat() ) ) );

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

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

相关文章