com.objectwave.logging.log4j
Class LoggingPropertyDetail

java.lang.Object
  |
  +--com.objectwave.logging.log4j.LoggingPropertyDetail

public class LoggingPropertyDetail
extends java.lang.Object

Hold properties related to the configuration of Log4j. If you happen to be using the default configuration support, a system property of com.objectwave.logging.log4j.LoggingPropertyDetail.useDefault=false will result in properties being used for the configuration of log4j.
com.objectwave.logging.log4j.LoggingPropertyDetail.logFileName=fileName will load the log4j configuration from the specified property file.

Version:
$Id: LoggingPropertyDetail.java,v 2.0 2001/06/11 15:46:53 dave_hoag Exp $
Author:
dhoag

Nested Class Summary
static class LoggingPropertyDetail.Test
           
 
Constructor Summary
LoggingPropertyDetail()
          Constructor for the LoggingPropertyDetail object
 
Method Summary
 java.lang.String getFileName()
          Get the value of the FileName property
 java.util.Properties getProperties()
          There is no 'set' method for the properties object since the configuration service can't set this value.
 java.lang.String getThresholdList()
          Get the Logging threshold configuration
 void initialize()
           
 boolean isInitializingLog4j()
          Gets the InitializingLog4j attribute of the LoggingPropertyDetail object
 boolean isUsingDefault()
          Gets the UsingDefault attribute of the LoggingPropertyDetail object
 void setFileName(java.lang.String file)
           
 void setInitializingLog4j(boolean b)
          Log4j may be initialized by a process other than our MessageLog implementation.
 void setThresholdList(java.lang.String list)
          Set the priority thresholds for the specified categories.
 void setUseDefault(boolean b)
          Must implement this method so that the configuration service will set value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingPropertyDetail

public LoggingPropertyDetail()
Constructor for the LoggingPropertyDetail object

Method Detail

setUseDefault

public void setUseDefault(boolean b)
Must implement this method so that the configuration service will set value. Without this method, the configuration service will NOT set property values.

Parameters:
b - The new UseDefault value

setInitializingLog4j

public void setInitializingLog4j(boolean b)
Log4j may be initialized by a process other than our MessageLog implementation. If that is true, the initializingLog4j property should be set to false. By default the MessageLog support in ObjectWave code will initialize Log4j.

Parameters:
b - The new InitializingLog4j value

setThresholdList

public void setThresholdList(java.lang.String list)
Set the priority thresholds for the specified categories. ex. com.objectwave:debug,com.objectwave.persist:info
will result in debug being logged for all objectwave packages, except persist. Persist will require a minimum of info for the information to be logged.

Parameters:
list - A common seperated list of category priority thresholds.

setFileName

public void setFileName(java.lang.String file)
                 throws java.io.IOException
Parameters:
file - The new FileName value
Throws:
java.io.IOException

getFileName

public java.lang.String getFileName()
Get the value of the FileName property

Returns:
The FileName value

getThresholdList

public java.lang.String getThresholdList()
Get the Logging threshold configuration

Returns:
The ThresholdList value

isUsingDefault

public boolean isUsingDefault()
Gets the UsingDefault attribute of the LoggingPropertyDetail object

Returns:
The UsingDefault value

isInitializingLog4j

public boolean isInitializingLog4j()
Gets the InitializingLog4j attribute of the LoggingPropertyDetail object

Returns:
The InitializingLog4j value

getProperties

public java.util.Properties getProperties()
There is no 'set' method for the properties object since the configuration service can't set this value.

Returns:
The Properties value

initialize

public void initialize()