org.codehaus.plexus.logging.Logger.getChildLogger()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(258)

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

Logger.getChildLogger介绍

暂无

代码示例

代码示例来源:origin: org.codehaus.plexus/plexus-container-default

  1. protected void setupLogger( Object component, String subCategory )
  2. {
  3. if ( subCategory == null )
  4. {
  5. throw new IllegalStateException( "Logging category must be defined." );
  6. }
  7. Logger logger = this.logger.getChildLogger( subCategory );
  8. setupLogger( component, logger );
  9. }

代码示例来源:origin: apache/maven-scm

  1. protected void setupLogger( Object component, String subCategory )
  2. {
  3. if ( subCategory == null )
  4. {
  5. throw new IllegalStateException( "Logging category must be defined." );
  6. }
  7. Logger logger = this.logger.getChildLogger( subCategory );
  8. setupLogger( component, logger );
  9. }

代码示例来源:origin: org.codehaus.plexus/com.springsource.org.codehaus.plexus.container

  1. protected void setupLogger( Object component, String subCategory )
  2. {
  3. if ( subCategory == null )
  4. {
  5. throw new IllegalStateException( "Logging category must be defined." );
  6. }
  7. Logger logger = this.logger.getChildLogger( subCategory );
  8. setupLogger( component, logger );
  9. }

代码示例来源:origin: org.eclipse.sisu/org.eclipse.sisu.plexus

  1. protected final void setupLogger( final Object component, final String category )
  2. {
  3. if ( category == null )
  4. {
  5. throw new IllegalStateException( "Logging category must be defined." );
  6. }
  7. setupLogger( component, logger.getChildLogger( category ) );
  8. }

代码示例来源:origin: org.sonatype.plexus/plexus-jetty6

  1. public Logger getLogger( String name )
  2. {
  3. return new PlexusJettyLogger( logger.getChildLogger( name ) );
  4. }

代码示例来源:origin: org.sonatype.plexus/plexus-jetty6

  1. public Logger getLogger( String name )
  2. {
  3. return new PlexusJettyLogger( logger.getChildLogger( name ) );
  4. }

代码示例来源:origin: org.jvnet.hudson.main/maven3-eventspy-3.0

  1. public Logger getChildLogger(final String name) {
  2. return new LoggerImpl(getThreshold(), String.format("%s.%s", getName(), name), delegate.getChildLogger(name));
  3. }

代码示例来源:origin: org.hudsonci.plugins/maven3-eventspy-3.1

  1. public Logger getChildLogger(final String name) {
  2. return new LoggerImpl(getThreshold(), String.format("%s.%s", getName(), name), delegate.getChildLogger(name));
  3. }

代码示例来源:origin: org.eclipse.hudson.main/maven3-eventspy-3.0

  1. public Logger getChildLogger(final String name) {
  2. return new LoggerImpl(getThreshold(), String.format("%s.%s", getName(), name), delegate.getChildLogger(name));
  3. }

相关文章