|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILogger
The ILogger interface. It serves as the interface for xulux logger wrapper implementations.
Method Summary | |
---|---|
void |
clearCache()
Clears the logging cache |
ILog |
getCurrentLogger()
|
ILog |
getDefaultLogger()
|
int |
getLevel()
|
ILog |
getLogger(java.lang.String name)
|
boolean |
isLevel(int level)
|
void |
log(int level,
java.lang.String name,
java.lang.String message)
Log a message |
void |
log(int level,
java.lang.String name,
java.lang.String message,
java.lang.Throwable t)
Log a message |
void |
registerLogger(java.lang.String name,
java.lang.String clz)
Register a logger. |
void |
setCurrentLogger(java.lang.String name)
Sets the current logger. |
void |
setDefaultLogger(java.lang.String name)
Set the default logger |
void |
setLevel(int level)
If the level is null, it will start using the default log level again. |
void |
useDefaultLogger()
Start using the default logger |
Method Detail |
---|
int getLevel()
boolean isLevel(int level)
level
- the level to check
void setLevel(int level)
level
- the log levelvoid log(int level, java.lang.String name, java.lang.String message)
level
- the level to usename
- the name to use (used as eg a prefix in the logging output)message
- the log messagevoid log(int level, java.lang.String name, java.lang.String message, java.lang.Throwable t)
level
- the level to usename
- the name to use (used as eg a prefix in the logging output)message
- the log messaget
- the exception to logILog getCurrentLogger()
void setDefaultLogger(java.lang.String name)
name
- the name of the loggerILog getLogger(java.lang.String name)
name
- the name of the logger
ILog getDefaultLogger()
void setCurrentLogger(java.lang.String name)
name
- the name of the loggervoid clearCache()
void useDefaultLogger()
void registerLogger(java.lang.String name, java.lang.String clz)
name
- the name of the loggerclz
- the class of the logger interface.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |