|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.util.log.log4j.Log4jLogger
public class Log4jLogger
The Log4jLogger is the ILogger implementation for log4j.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.sibvisions.util.log.ILogger |
|---|
ILogger.LogLevel |
| Constructor Summary | |
|---|---|
Log4jLogger(java.lang.String pName)
Creates a new instance of Log4jLogger. |
|
| Method Summary | |
|---|---|
void |
debug(java.lang.Object... info)
Logs information with ILogger.LogLevel.DEBUG. |
void |
error(java.lang.Object... info)
Logs information with ILogger.LogLevel.ERROR. |
ILogger.LogLevel |
getLevel()
Gets the log level. |
java.lang.String |
getName()
Gets the logger name. |
void |
info(java.lang.Object... info)
Logs information with ILogger.LogLevel.INFO. |
boolean |
isEnabled(ILogger.LogLevel pLevel)
Checks if the current log level is enabled/allowed to log. |
boolean |
isLevelSet()
Gets whether the log level is set or used from a parent logger. |
void |
setLevel(ILogger.LogLevel pLevel)
Sets the log level. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Log4jLogger(java.lang.String pName)
Log4jLogger.
pName - the name for the logger (the class name is recommended)| Method Detail |
|---|
public java.lang.String getName()
getName in interface ILoggerpublic void setLevel(ILogger.LogLevel pLevel)
setLevel in interface ILoggerpLevel - the log levelpublic boolean isLevelSet()
isLevelSet in interface ILoggertrue if the logger has its own log levelpublic ILogger.LogLevel getLevel()
getLevel in interface ILoggerpublic void debug(java.lang.Object... info)
ILogger.LogLevel.DEBUG.
debug in interface ILoggerinfo - any log informationpublic void info(java.lang.Object... info)
ILogger.LogLevel.INFO.
info in interface ILoggerinfo - any log informationpublic void error(java.lang.Object... info)
ILogger.LogLevel.ERROR.
error in interface ILoggerinfo - any log informationpublic boolean isEnabled(ILogger.LogLevel pLevel)
isEnabled in interface ILoggerpLevel - the log level to check
true if the log level is allowed to log
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||