|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LogInterface
Defines an Interface to new Loggers. Any Logger we use must adhere to this interface. The Implementation must provide a public constructor with no arguments. After construction either the setCategory() or the addAppender() method will be called.
Field Summary | |
---|---|
static String |
CONFIG_INSTANCE
|
static String |
NAME
|
static String |
TIME
|
static String |
TYPE
|
Method Summary | |
---|---|
void |
addAppender(LogConfigItem config,
Map params)
Add an Appender to the Logger using the given config. |
void |
close()
Free up all resources this logger uses. |
void |
debug(String str)
Log a message with level debug. |
void |
error(String str)
Log a message with level error. |
void |
error(String str,
Throwable error)
Log a message with level error, and an additional Throwable. |
void |
fatal(String str)
Log a message with level fatal. |
void |
fatal(String str,
Throwable error)
Log a message with level fatal, and an additional Throwable. |
void |
info(String str)
Log a message with level info. |
boolean |
isDebugEnabled()
Check if a debug message would be logged. |
void |
log(String level,
String str)
Log a message with the specified level. |
void |
setCategory(String category)
Set the category for this Logger. |
void |
warn(String str)
Log a message with level warning. |
Field Detail |
---|
static final String TYPE
static final String NAME
static final String CONFIG_INSTANCE
static final String TIME
Method Detail |
---|
void setCategory(String category) throws Exception
category
- The category to use.
Exception
void addAppender(LogConfigItem config, Map params) throws Exception
config
- The LogConfigItem.params
- Extra information that may be useful/
Exception
void debug(String str)
str
- The string to be loggedvoid info(String str)
str
- The string to be loggedvoid warn(String str)
str
- The string to be loggedvoid error(String str)
str
- The string to be loggedvoid error(String str, Throwable error)
str
- The string to be loggederror
- The Throwable to be loggedvoid fatal(String str)
str
- The string to be loggedvoid fatal(String str, Throwable error)
str
- The string to be loggederror
- The Throwable to be loggedvoid log(String level, String str)
level
- The level to use when logging.str
- The string to be loggedboolean isDebugEnabled()
void close()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |