com.cafesoft.core.log
Interface Log4JLogger

All Superinterfaces:
Logger
All Known Implementing Classes:
StandardLog4JLogger

public interface Log4JLogger
extends Logger

Interface that extends the Logger interface and allows for the implementing class to add and remove Log4j appender Objects to the logger.

Since:
7/11/02

Field Summary
 
Fields inherited from interface com.cafesoft.core.log.Logger
DEBUG, ERROR, FATAL, INFO, WARNING
 
Method Summary
 void addAppender(org.apache.log4j.Appender appender)
          Add an appender to the Logger
 void removeAppender(org.apache.log4j.Appender appender)
          Remove an appender from the Logger
 void setFullyQualifiedClassName(String className)
          Set the fully qualified class name of the calling class.
 
Methods inherited from interface com.cafesoft.core.log.Logger
debug, debug, error, error, fatal, fatal, info, info, initialize, setMessageFilter, warning, warning
 

Method Detail

setFullyQualifiedClassName

public void setFullyQualifiedClassName(String className)
Set the fully qualified class name of the calling class.

Setting this value will allow for the logger to maintain the class that actually called the log method. This is a log4j specific detail. We need this set otherwise any class that "has a" Log4JLogger will not print out the appropriate class information.

Parameters:
className - the fully-qualified class name

addAppender

public void addAppender(org.apache.log4j.Appender appender)
Add an appender to the Logger

Parameters:
appender - the Appender Object to add to the Logger

removeAppender

public void removeAppender(org.apache.log4j.Appender appender)
Remove an appender from the Logger

Parameters:
appender - the Appender Object to remove from the Logger


Generated on 5:16:42 PM May 12, 2008, © 1996-2005 Cafésoft LLC. All rights reserved.