org.apache.jsieve
Class Logger

java.lang.Object
  extended byorg.apache.jsieve.Logger

public class Logger
extends java.lang.Object

Singleton class Logger manages the configuartion of the Log used by Sieve.


Method Summary
protected static org.apache.commons.logging.Log computeLog()
          Computes the log.
static org.apache.commons.logging.Log getLog()
          Returns the logger.
protected static java.lang.String getLogName()
           Answers the log name.
protected static void setLog(org.apache.commons.logging.Log logger)
          Sets the logger.
protected static void updateLog()
          Updates the log.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLog

public static org.apache.commons.logging.Log getLog()
Returns the logger.

Returns:
Log

computeLog

protected static org.apache.commons.logging.Log computeLog()
Computes the log.

Returns:
Log

setLog

protected static void setLog(org.apache.commons.logging.Log logger)
Sets the logger.

Parameters:
logger - The logger to set

updateLog

protected static void updateLog()
Updates the log.


getLogName

protected static java.lang.String getLogName()

Answers the log name.

Note that this cannot be fetched from the ConfigurationManager as the ConfigurationManager itself uses the Logger. This would result in a loop! No points for deducing why I am sure of this!

Returns:
String The name of the log


Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.