|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Logger defines the interface to a general-purpose message
logger.
| 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 |
public static final int DEBUG
public static final int INFO
public static final int WARNING
public static final int ERROR
public static final int FATAL
| Method Detail |
public void initialize(Properties prop)
throws LoggerException
prop - initialization Properties.
LoggerException - if an error initializing the Logger.public void setMessageFilter(MessageFilter filter)
filter - the MessageFilter that discriminates the
messages to be logged.
public void debug(Object source,
String message)
source - the source of the message.message - the debug message to be logged.
public void debug(Object source,
String message,
Throwable throwable)
source - the source of the message.message - the debug message to be logged.throwable - an Exception or Error to be logged.
public void info(Object source,
String message)
source - the source of the message.message - the info message to be logged.
public void info(Object source,
String message,
Throwable throwable)
source - the source of the message.message - the info message to be logged.throwable - an Exception or Error to be logged.
public void warning(Object source,
String message)
source - the source of the message.message - the info message to be logged.
public void warning(Object source,
String message,
Throwable throwable)
source - the source of the message.message - the warning message to be logged.throwable - an Exception or Error to be logged.
public void error(Object source,
String message)
source - the source of the message.message - the info message to be logged.
public void error(Object source,
String message,
Throwable throwable)
source - the source of the message.message - the error message to be logged.throwable - an Exception or Error to be logged.
public void fatal(Object source,
String message)
source - the source of the message.message - the info message to be logged.
public void fatal(Object source,
String message,
Throwable throwable)
source - the source of the message.message - the fatal message to be logged.throwable - an Exception or Error to be logged.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||