org.apache.ojb.broker.util.logging
Class LoggingConfiguration

java.lang.Object
  extended by org.apache.ojb.broker.util.configuration.impl.ConfigurationAbstractImpl
      extended by org.apache.ojb.broker.util.logging.LoggingConfiguration
All Implemented Interfaces:
Configuration

public class LoggingConfiguration
extends ConfigurationAbstractImpl

Provides the configuration for the logging. Note that this is separated from the OJB configuration.

Version:
$Id: LoggingConfiguration.java,v 1.1 2007-08-24 22:17:32 ewestfal Exp $

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

PROPERTY_COMMONS_LOGGING_LOG

public static final String PROPERTY_COMMONS_LOGGING_LOG
The commons-logging property denoting which log to use. This property is repeated here to avoid making this class dependent upon commons-logging

See Also:
Constant Field Values

PROPERTY_COMMONS_LOGGING_LOGFACTORY

public static final String PROPERTY_COMMONS_LOGGING_LOGFACTORY
The commons-logging property denoting which log factory to use. This property is repeated here to avoid making this class dependent upon commons-logging

See Also:
Constant Field Values

PROPERTY_OJB_LOGGERCLASS

public static final String PROPERTY_OJB_LOGGERCLASS
The property denoting the OJB logger class

See Also:
Constant Field Values

PROPERTY_OJB_LOGGERCONFIGFILE

public static final String PROPERTY_OJB_LOGGERCONFIGFILE
The property denoting the config file for the OJB logger class

See Also:
Constant Field Values

OJB_LOGGING_PROPERTIES_FILE

public static final String OJB_LOGGING_PROPERTIES_FILE
Default filename of the OJB logging properties file

See Also:
Constant Field Values

OJB_DEFAULT_LOG_LEVEL

public static final String OJB_DEFAULT_LOG_LEVEL
Default log level

See Also:
Constant Field Values

OJB_DEFAULT_BOOT_LOG_LEVEL

public static final String OJB_DEFAULT_BOOT_LOG_LEVEL
Default boot log level

See Also:
Constant Field Values
Constructor Detail

LoggingConfiguration

public LoggingConfiguration()
Creates a new logging configuration object which automatically initializes itself.

Method Detail

load

protected void load()
Description copied from class: ConfigurationAbstractImpl
Loads the Configuration from the properties file. Loads the properties file, or uses defaults on failure.

Overrides:
load in class ConfigurationAbstractImpl
See Also:
ConfigurationAbstractImpl.setFilename(java.lang.String)

getLogLevel

public String getLogLevel(String loggerName)

setLogger

public void setLogger(Logger loggerInstance)
Description copied from interface: Configuration
this method allows to set a logger that tracks configuration events.

Specified by:
setLogger in interface Configuration
Overrides:
setLogger in class ConfigurationAbstractImpl
Parameters:
loggerInstance - the logger to set
See Also:
Configuration.setLogger(Logger)

getLoggerClass

public Class getLoggerClass()
Returns the logger class.

Returns:
The logger class

getLoggerConfigFile

public String getLoggerConfigFile()
Returns the name of the config file for the logger.

Returns:
The config file if it was configured


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.