/** * Constructs an <code>AvalonLogger</code> that will log to a child * of the <code>Logger</code> set by calling {@link #setDefaultLogger}. * * @param name the name of the avalon logger implementation to delegate to */ public AvalonLogger(String name) { if (defaultLogger == null) { throw new NullPointerException("default logger has to be specified if this constructor is used!"); } this.logger = defaultLogger.getChildLogger(name); }
/** * Constructs an <code>AvalonLogger</code> that will log to a child * of the <code>Logger</code> set by calling {@link #setDefaultLogger}. * @param name the name of the avalon logger implementation to delegate to */ public AvalonLogger(String name) { if (defaultLogger == null) throw new NullPointerException("default logger has to be specified if this constructor is used!"); this.logger = defaultLogger.getChildLogger(name); }
/** * Retrieve a logger by name. * * @param name the name of logger * @return the specified Logger */ public org.apache.avalon.framework.logger.Logger getLoggerForCategory( final String name ) { return m_logger.getChildLogger( name ); }
/** * Provide a logger * * @see org.apache.avalon.framework.logger.LogEnabled#enableLogging(org.apache.avalon.framework.logger.Logger) */ public void enableLogging(Logger logger) { this.log = logger.getChildLogger("DataStreamParser"); }
public Logger getLoggerForCategory( String categoryName ) { return logger.getChildLogger( categoryName ); }
/** * Constructs an <code>AvalonLogger</code> that will log to a child * of the <code>Logger</code> set by calling {@link #setDefaultLogger}. * * @param name the name of the avalon logger implementation to delegate to */ public AvalonLogger(String name) { if (defaultLogger == null) { throw new NullPointerException("default logger has to be specified if this constructor is used!"); } this.logger = defaultLogger.getChildLogger(name); }
/** * Constructs an <code>AvalonLogger</code> that will log to a child * of the <code>Logger</code> set by calling {@link #setDefaultLogger}. * * @param name the name of the avalon logger implementation to delegate to */ public AvalonLogger(String name) { if (defaultLogger == null) { throw new NullPointerException("default logger has to be specified if this constructor is used!"); } this.logger = defaultLogger.getChildLogger(name); }
/** * Constructs an <code>AvalonLogger</code> that will log to a child * of the <code>Logger</code> set by calling {@link #setDefaultLogger}. * * @param name the name of the avalon logger implementation to delegate to */ public AvalonLogger(String name) { if (defaultLogger == null) { throw new NullPointerException("default logger has to be specified if this constructor is used!"); } this.logger = defaultLogger.getChildLogger(name); }
/** * Constructs an <code>AvalonLogger</code> that will log to a child * of the <code>Logger</code> set by calling {@link #setDefaultLogger}. * * @param name the name of the avalon logger implementation to delegate to */ public AvalonLogger(String name) { if (defaultLogger == null) { throw new NullPointerException("default logger has to be specified if this constructor is used!"); } this.logger = defaultLogger.getChildLogger(name); }
/** * Constructs an <code>AvalonLogger</code> that will log to a child * of the <code>Logger</code> set by calling {@link #setDefaultLogger}. * * @param name the name of the avalon logger implementation to delegate to */ public AvalonLogger(String name) { if (defaultLogger == null) { throw new NullPointerException("default logger has to be specified if this constructor is used!"); } this.logger = defaultLogger.getChildLogger(name); }
/** * Constructs an <code>AvalonLogger</code> that will log to a child * of the <code>Logger</code> set by calling {@link #setDefaultLogger}. * @param name the name of the avalon logger implementation to delegate to */ public AvalonLogger(String name) { if (defaultLogger == null) throw new NullPointerException("default logger has to be specified if this constructor is used!"); this.logger = defaultLogger.getChildLogger(name); }
/** * Constructs an <code>AvalonLogger</code> that will log to a child * of the <code>Logger</code> set by calling {@link #setDefaultLogger}. * * @param name the name of the avalon logger implementation to delegate to */ public AvalonLogger(String name) { if (defaultLogger == null) { throw new NullPointerException("default logger has to be specified if this constructor is used!"); } this.logger = defaultLogger.getChildLogger(name); }
/** * Constructs an <code>AvalonLogger</code> that will log to a child * of the <code>Logger</code> set by calling {@link #setDefaultLogger}. * * @param name the name of the avalon logger implementation to delegate to */ public AvalonLogger(String name) { if (defaultLogger == null) { throw new NullPointerException("default logger has to be specified if this constructor is used!"); } this.logger = defaultLogger.getChildLogger(name); }
/** * Constructs an <code>AvalonLogger</code> that will log to a child * of the <code>Logger</code> set by calling {@link #setDefaultLogger}. * * @param name the name of the avalon logger implementation to delegate to */ public AvalonLogger(String name) { if (defaultLogger == null) { throw new NullPointerException("default logger has to be specified if this constructor is used!"); } this.logger = defaultLogger.getChildLogger(name); }
/** * Enable Avalon Logging */ @Override public void enableLogging(Logger logger) { this.log = logger.getChildLogger(getClass().getSimpleName()); }
/** * Enable Avalon Logging */ @Override public void enableLogging(Logger logger) { this.log = logger.getChildLogger(getClass().getSimpleName()); }
/** * Enable Avalon Logging */ @Override public void enableLogging(Logger logger) { this.log = logger.getChildLogger(getClass().getSimpleName()); }
public void enableLogging( Logger logger ) { super.enableLogging( logger ); // Create a child logger for logging setValue and increment calls so // that they can be filtered out. m_valueLogger = logger.getChildLogger( "values" ); }
public void enableLogging( final Logger logger ) { m_logger = logger; m_detailLogger = logger.getChildLogger( "detail" ); // Log a created message here rather as we can't in the constructor // due to the lack of a logger. debug( "created." ); }
/** * Overide newWorkerThread to provide a WorkerThread * that is Poolable and LogEnabled. * * @param name the name of WorkerThread * @return the created WorkerThread */ protected WorkerThread newWorkerThread( final String name ) { final SimpleWorkerThread thread = new SimpleWorkerThread( this, getThreadGroup(), name ); ContainerUtil.enableLogging( thread, m_logger.getChildLogger( "worker" ) ); return thread; }