com.cafesoft.core.log
Interface Logger

All Known Subinterfaces:
Log4JLogger
All Known Implementing Classes:
CamsTraceLogger, Log4JFileLogger, StandardLog4JLogger, StderrLogger, StdoutLogger

public interface Logger

Logger defines the interface to a general-purpose message logger.

Since:
4/10/02

Field Summary
static int DEBUG
          A flag used to indicate that a message is at the "DEBUG" level.
static int ERROR
          A flag used to indicate that a message is at the "ERROR" level.
static int FATAL
          A flag used to indicate that a message is at the "FATAL" level.
static int INFO
          A flag used to indicate that a message is at the "INFO" level.
static int WARNING
          A flag used to indicate that a message is at the "WARNING" level.
 
Method Summary
 void debug(Object source, String message)
          Log a debug message from the specified source object.
 void debug(Object source, String message, Throwable throwable)
          Log a debug message from the specified source object.
 void error(Object source, String message)
          Log a error message from the specified source object.
 void error(Object source, String message, Throwable throwable)
          Log a error message from the specified source object.
 void fatal(Object source, String message)
          Log a fatal message from the specified source object.
 void fatal(Object source, String message, Throwable throwable)
          Log a fatal message from the specified source object.
 void info(Object source, String message)
          Log an info message from the specified source object.
 void info(Object source, String message, Throwable throwable)
          Log an info message from the specified source object.
 void initialize(Properties prop)
          Initialize the Logger.
 void setMessageFilter(MessageFilter filter)
          Set a message filter.
 void warning(Object source, String message)
          Log a warning message from the specified source object.
 void warning(Object source, String message, Throwable throwable)
          Log a warning message from the specified source object.
 

Field Detail

DEBUG

public static final int DEBUG
A flag used to indicate that a message is at the "DEBUG" level.

See Also:
Constant Field Values

INFO

public static final int INFO
A flag used to indicate that a message is at the "INFO" level.

See Also:
Constant Field Values

WARNING

public static final int WARNING
A flag used to indicate that a message is at the "WARNING" level.

See Also:
Constant Field Values

ERROR

public static final int ERROR
A flag used to indicate that a message is at the "ERROR" level.

See Also:
Constant Field Values

FATAL

public static final int FATAL
A flag used to indicate that a message is at the "FATAL" level.

See Also:
Constant Field Values
Method Detail

initialize

public void initialize(Properties prop)
                throws LoggerException
Initialize the Logger.

Parameters:
prop - initialization Properties.
Throws:
LoggerException - if an error initializing the Logger.

setMessageFilter

public void setMessageFilter(MessageFilter filter)
Set a message filter.

Parameters:
filter - the MessageFilter that discriminates the messages to be logged.

debug

public void debug(Object source,
                  String message)
Log a debug message from the specified source object.

Parameters:
source - the source of the message.
message - the debug message to be logged.

debug

public void debug(Object source,
                  String message,
                  Throwable throwable)
Log a debug message from the specified source object.

Parameters:
source - the source of the message.
message - the debug message to be logged.
throwable - an Exception or Error to be logged.

info

public void info(Object source,
                 String message)
Log an info message from the specified source object.

Parameters:
source - the source of the message.
message - the info message to be logged.

info

public void info(Object source,
                 String message,
                 Throwable throwable)
Log an info message from the specified source object.

Parameters:
source - the source of the message.
message - the info message to be logged.
throwable - an Exception or Error to be logged.

warning

public void warning(Object source,
                    String message)
Log a warning message from the specified source object.

Parameters:
source - the source of the message.
message - the info message to be logged.

warning

public void warning(Object source,
                    String message,
                    Throwable throwable)
Log a warning message from the specified source object.

Parameters:
source - the source of the message.
message - the warning message to be logged.
throwable - an Exception or Error to be logged.

error

public void error(Object source,
                  String message)
Log a error message from the specified source object.

Parameters:
source - the source of the message.
message - the info message to be logged.

error

public void error(Object source,
                  String message,
                  Throwable throwable)
Log a error message from the specified source object.

Parameters:
source - the source of the message.
message - the error message to be logged.
throwable - an Exception or Error to be logged.

fatal

public void fatal(Object source,
                  String message)
Log a fatal message from the specified source object.

Parameters:
source - the source of the message.
message - the info message to be logged.

fatal

public void fatal(Object source,
                  String message,
                  Throwable throwable)
Log a fatal message from the specified source object.

Parameters:
source - the source of the message.
message - the fatal message to be logged.
throwable - an Exception or Error to be logged.


Generated on 8:41:50 AM June 06, 2005, © 1996-2005 Cafésoft LLC. All rights reserved.