|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.commons.log.AbstractLogger
com.genesyslab.platform.commons.log.Log4JLoggerImpl
public class Log4JLoggerImpl
Platform SDK Commons Logger implementation which sends PSDK internal logs to Log4j v1.x logging system.
Log4JLoggerFactoryImpl
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.genesyslab.platform.commons.log.AbstractLogger |
---|
AbstractLogger.Level |
Constructor Summary | |
---|---|
Log4JLoggerImpl(Logger impl)
|
Method Summary | |
---|---|
ILogger |
createChildLogger(java.lang.String name)
Creates new child logger. |
boolean |
isDebug()
Checks whether this Logger is enabled for the DEBUG Level. |
boolean |
isError()
Checks whether this Logger is enabled for the ERROR Level. |
boolean |
isFatalError()
Checks whether this Logger is enabled for the FATAL ERROR level. |
boolean |
isInfo()
Checks whether this Logger is enabled for the INFO Level. |
boolean |
isWarn()
Checks whether this Logger is enabled for the WARNING Level. |
protected void |
log(java.lang.Object message,
java.lang.Throwable thr,
AbstractLogger.Level level)
|
protected void |
logArgs(java.lang.String message,
java.lang.Object args,
AbstractLogger.Level level)
|
Methods inherited from class com.genesyslab.platform.commons.log.AbstractLogger |
---|
debug, debug, debugFormat, error, error, errorFormat, fatalError, fatalError, fatalErrorFormat, formatMessage, info, info, infoFormat, warn, warn, warnFormat |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Log4JLoggerImpl(Logger impl)
Method Detail |
---|
public boolean isDebug()
ILogger
DEBUG
Level.
true
if this Logger is enabled for level DEBUG
,
false
otherwise.public boolean isInfo()
ILogger
INFO
Level.
true
if this Logger is enabled for level INFO
,
false
otherwise.public boolean isError()
ILogger
ERROR
Level.
true
if this Logger is enabled for level ERROR
,
false
otherwise.public boolean isFatalError()
ILogger
FATAL ERROR
level.
Note: Some of PSDK supported logging frameworks (namely "Slf4J
"
and "java.util.logging
") do not support FATAL ERROR
messages level.Slf4J
logging adapter PSDK marks such messages with "PSDK_FATAL_MESSAGE" marker.java.util.logging
adapter this level is processed as ERROR
(SEVERE
).
true
if this Logger is enabled for level FATAL ERROR
,
false
otherwise.public boolean isWarn()
ILogger
WARNING
Level.
true
if this Logger is enabled for level WARNING
,
false
otherwise.public ILogger createChildLogger(java.lang.String name)
ILogger
[this-logger-name].[child-name]
".
name
- the child name for the new logger
protected void log(java.lang.Object message, java.lang.Throwable thr, AbstractLogger.Level level)
log
in class AbstractLogger
protected void logArgs(java.lang.String message, java.lang.Object args, AbstractLogger.Level level)
logArgs
in class AbstractLogger
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |