public class LoggingConfiguration
extends org.apache.ojb.broker.util.configuration.impl.ConfigurationAbstractImpl
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OJB_DEFAULT_BOOT_LOG_LEVEL
Default boot log level
|
static java.lang.String |
OJB_DEFAULT_LOG_LEVEL
Default log level
|
static java.lang.String |
OJB_LOGGING_PROPERTIES_FILE
Default filename of the OJB logging properties file
|
static java.lang.String |
PROPERTY_COMMONS_LOGGING_LOG
The commons-logging property denoting which log to use.
|
static java.lang.String |
PROPERTY_COMMONS_LOGGING_LOGFACTORY
The commons-logging property denoting which log factory to use.
|
static java.lang.String |
PROPERTY_OJB_LOGGERCLASS
The property denoting the OJB logger class
|
static java.lang.String |
PROPERTY_OJB_LOGGERCONFIGFILE
The property denoting the config file for the OJB logger class
|
Constructor and Description |
---|
LoggingConfiguration()
Creates a new logging configuration object which automatically initializes itself.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
getLoggerClass()
Returns the logger class.
|
java.lang.String |
getLoggerConfigFile()
Returns the name of the config file for the logger.
|
java.lang.String |
getLogLevel(java.lang.String loggerName) |
void |
setLogger(Logger loggerInstance)
this method allows to set a logger that tracks configuration events.
|
public static final java.lang.String PROPERTY_COMMONS_LOGGING_LOG
public static final java.lang.String PROPERTY_COMMONS_LOGGING_LOGFACTORY
public static final java.lang.String PROPERTY_OJB_LOGGERCLASS
public static final java.lang.String PROPERTY_OJB_LOGGERCONFIGFILE
public static final java.lang.String OJB_LOGGING_PROPERTIES_FILE
public static final java.lang.String OJB_DEFAULT_LOG_LEVEL
public static final java.lang.String OJB_DEFAULT_BOOT_LOG_LEVEL
public LoggingConfiguration()
public java.lang.String getLogLevel(java.lang.String loggerName)
public void setLogger(Logger loggerInstance)
org.apache.ojb.broker.util.configuration.Configuration
setLogger
in interface org.apache.ojb.broker.util.configuration.Configuration
setLogger
in class org.apache.ojb.broker.util.configuration.impl.ConfigurationAbstractImpl
loggerInstance
- the logger to setConfiguration.setLogger(Logger)
public java.lang.Class getLoggerClass()
public java.lang.String getLoggerConfigFile()
(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30