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:
org.apache.ojb.broker.util.configuration.Configuration

public class LoggingConfiguration
extends org.apache.ojb.broker.util.configuration.impl.ConfigurationAbstractImpl

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

Version:
$Id: LoggingConfiguration.java 365232 2005-12-21 22:36:07Z tomdz $

Field Summary
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 Summary
LoggingConfiguration()
          Creates a new logging configuration object which automatically initializes itself.
 
Method Summary
 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.
 
Methods inherited from class org.apache.ojb.broker.util.configuration.impl.ConfigurationAbstractImpl
getBoolean, getByte, getClass, getClass, getClass, getInteger, getLong, getString, getStrings, getStrings
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_COMMONS_LOGGING_LOG

public static final java.lang.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 java.lang.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 java.lang.String PROPERTY_OJB_LOGGERCLASS
The property denoting the OJB logger class

See Also:
Constant Field Values

PROPERTY_OJB_LOGGERCONFIGFILE

public static final java.lang.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 java.lang.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 java.lang.String OJB_DEFAULT_LOG_LEVEL
Default log level

See Also:
Constant Field Values

OJB_DEFAULT_BOOT_LOG_LEVEL

public static final java.lang.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

getLogLevel

public java.lang.String getLogLevel(java.lang.String loggerName)

setLogger

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

Specified by:
setLogger in interface org.apache.ojb.broker.util.configuration.Configuration
Overrides:
setLogger in class org.apache.ojb.broker.util.configuration.impl.ConfigurationAbstractImpl
Parameters:
loggerInstance - the logger to set
See Also:
Configuration.setLogger(Logger)

getLoggerClass

public java.lang.Class getLoggerClass()
Returns the logger class.

Returns:
The logger class

getLoggerConfigFile

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

Returns:
The config file if it was configured


(C) 2002 - 2006 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