|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ojb.broker.util.configuration.impl.ConfigurationAbstractImpl
org.apache.ojb.broker.util.logging.LoggingConfiguration
public class LoggingConfiguration
Provides the configuration for the logging. Note that this is separated from the OJB configuration.
| Field Summary | |
|---|---|
static String |
OJB_DEFAULT_BOOT_LOG_LEVEL
Default boot log level |
static String |
OJB_DEFAULT_LOG_LEVEL
Default log level |
static String |
OJB_LOGGING_PROPERTIES_FILE
Default filename of the OJB logging properties file |
static String |
PROPERTY_COMMONS_LOGGING_LOG
The commons-logging property denoting which log to use. |
static String |
PROPERTY_COMMONS_LOGGING_LOGFACTORY
The commons-logging property denoting which log factory to use. |
static String |
PROPERTY_OJB_LOGGERCLASS
The property denoting the OJB logger class |
static String |
PROPERTY_OJB_LOGGERCONFIGFILE
The property denoting the config file for the OJB logger class |
| Fields inherited from class org.apache.ojb.broker.util.configuration.impl.ConfigurationAbstractImpl |
|---|
filename, properties |
| Constructor Summary | |
|---|---|
LoggingConfiguration()
Creates a new logging configuration object which automatically initializes itself. |
|
| Method Summary | |
|---|---|
Class |
getLoggerClass()
Returns the logger class. |
String |
getLoggerConfigFile()
Returns the name of the config file for the logger. |
String |
getLogLevel(String loggerName)
|
protected void |
load()
Loads the Configuration from the properties file. |
void |
setLogger(Logger loggerInstance)
this method allows to set a logger that tracks configuration events. |
| Methods inherited from class org.apache.ojb.broker.util.configuration.impl.ConfigurationAbstractImpl |
|---|
getBoolean, getByte, getClass, getClass, getClass, getInteger, getLong, getString, getStrings, getStrings, setFilename |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTY_COMMONS_LOGGING_LOG
public static final String PROPERTY_COMMONS_LOGGING_LOGFACTORY
public static final String PROPERTY_OJB_LOGGERCLASS
public static final String PROPERTY_OJB_LOGGERCONFIGFILE
public static final String OJB_LOGGING_PROPERTIES_FILE
public static final String OJB_DEFAULT_LOG_LEVEL
public static final String OJB_DEFAULT_BOOT_LOG_LEVEL
| Constructor Detail |
|---|
public LoggingConfiguration()
| Method Detail |
|---|
protected void load()
ConfigurationAbstractImpl
load in class ConfigurationAbstractImplConfigurationAbstractImpl.setFilename(java.lang.String)public String getLogLevel(String loggerName)
public void setLogger(Logger loggerInstance)
Configuration
setLogger in interface ConfigurationsetLogger in class ConfigurationAbstractImplloggerInstance - the logger to setConfiguration.setLogger(Logger)public Class getLoggerClass()
public String getLoggerConfigFile()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||