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