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

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

See Also:
Constant Field Values

INFO

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

See Also:
Constant Field Values

WARNING

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

See Also:
Constant Field Values

ERROR

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

See Also:
Constant Field Values

FATAL

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

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

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

setMessageFilter

void setMessageFilter(MessageFilter filter)
Set a message filter.

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

debug

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

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

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

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

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

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

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

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

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

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 10:38:35 AM April 14, 2011, © 1996-2010 Cafésoft LLC. All rights reserved.