|
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.NullLoggerImpl
public class NullLoggerImpl
This class is useful for situations where you need to provide a logger to a utility class, but do not want any output from it. It also helps when you have a utility that does not have a logger to supply.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.genesyslab.platform.commons.log.AbstractLogger |
---|
AbstractLogger.Level |
Field Summary | |
---|---|
static NullLoggerImpl |
SINGLETON
|
Constructor Summary | |
---|---|
NullLoggerImpl()
|
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 e,
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 |
Field Detail |
---|
public static final NullLoggerImpl SINGLETON
Constructor Detail |
---|
public NullLoggerImpl()
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 e, 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 |