|
|||||||||||
| 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 java.lang.String |
CONFIG_INSTANCE
|
static java.lang.String |
NAME
|
static java.lang.String |
TIME
|
static java.lang.String |
TYPE
|
| Method Summary | |
|---|---|
void |
addAppender(LogConfigItem config,
java.util.Map<java.lang.String,java.lang.Object> params)
Add an Appender to the Logger using the given config. |
void |
close()
Free up all resources this logger uses. |
void |
debug(java.lang.String str)
Log a message with level debug. |
void |
error(java.lang.String str)
Log a message with level error. |
void |
error(java.lang.String str,
java.lang.Throwable error)
Log a message with level error, and an additional Throwable. |
void |
fatal(java.lang.String str)
Log a message with level fatal. |
void |
fatal(java.lang.String str,
java.lang.Throwable error)
Log a message with level fatal, and an additional Throwable. |
void |
info(java.lang.String str)
Log a message with level info. |
boolean |
isDebugEnabled()
Check if a debug message would be logged. |
void |
log(java.lang.String level,
java.lang.String str)
Log a message with the specified level. |
void |
setCategory(java.lang.String category)
Set the category for this Logger. |
void |
warn(java.lang.String str)
Log a message with level warning. |
| Field Detail |
|---|
static final java.lang.String TYPE
static final java.lang.String NAME
static final java.lang.String CONFIG_INSTANCE
static final java.lang.String TIME
| Method Detail |
|---|
void setCategory(java.lang.String category)
throws java.lang.Exception
category - The category to use.
java.lang.Exception
void addAppender(LogConfigItem config,
java.util.Map<java.lang.String,java.lang.Object> params)
throws java.lang.Exception
config - The LogConfigItem.params - Extra information that may be useful/
java.lang.Exceptionvoid debug(java.lang.String str)
str - The string to be loggedvoid info(java.lang.String str)
str - The string to be loggedvoid warn(java.lang.String str)
str - The string to be loggedvoid error(java.lang.String str)
str - The string to be logged
void error(java.lang.String str,
java.lang.Throwable error)
str - The string to be loggederror - The Throwable to be loggedvoid fatal(java.lang.String str)
str - The string to be logged
void fatal(java.lang.String str,
java.lang.Throwable error)
str - The string to be loggederror - The Throwable to be logged
void log(java.lang.String level,
java.lang.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 | ||||||||||