|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sibvisions.util.log.jdk.JdkStandardLogger
public class JdkStandardLogger
The JdkStandardLogger
is a special logger for the case that a
security manager denies the access to the log properties.
The log will be written to System.out
and the JdkLineFormatter
will be used.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.sibvisions.util.log.ILogger |
---|
ILogger.LogLevel |
Constructor Summary | |
---|---|
JdkStandardLogger(String pName)
Creates a new instance of JdkStandardLogger . |
Method Summary | |
---|---|
void |
debug(Object... pInfo)
Logs information with ILogger.LogLevel.DEBUG . |
void |
error(Object... pInfo)
Logs information with ILogger.LogLevel.ERROR . |
ILogger.LogLevel |
getLevel()
Gets the log level. |
String |
getName()
Gets the logger name. |
void |
info(Object... pInfo)
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. |
protected void |
publish(LogRecord pRecord)
Prints out the log record to System.out. |
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 JdkStandardLogger(String pName)
JdkStandardLogger
.
pName
- the name for the logger (the class name is recommended)Method Detail |
---|
public String getName()
getName
in interface ILogger
public void setLevel(ILogger.LogLevel pLevel)
setLevel
in interface ILogger
pLevel
- the log levelpublic boolean isLevelSet()
isLevelSet
in interface ILogger
true
if the logger has its own log levelpublic ILogger.LogLevel getLevel()
getLevel
in interface ILogger
public void debug(Object... pInfo)
ILogger.LogLevel.DEBUG
.
debug
in interface ILogger
pInfo
- any log informationpublic void info(Object... pInfo)
ILogger.LogLevel.INFO
.
info
in interface ILogger
pInfo
- any log informationpublic void error(Object... pInfo)
ILogger.LogLevel.ERROR
.
error
in interface ILogger
pInfo
- any log informationpublic boolean isEnabled(ILogger.LogLevel pLevel)
isEnabled
in interface ILogger
pLevel
- the log level to check
true
if the log level is allowed to logprotected void publish(LogRecord pRecord)
pRecord
- the log record
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |