Package org.jgroups.logging
Class JDKLogImpl
java.lang.Object
org.jgroups.logging.JDKLogImpl
- All Implemented Interfaces:
Log
Logger that delivers messages to a JDK logger
- Since:
- 2.8
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidprotected StringgetLevel()voidvoidbooleanbooleanbooleanbooleanbooleanbooleanprivate voidprivate voidTo correctly attribute the source class/method name to that of the JGroups class, we can't let JDK compute that.voidSets the level of a logger.protected static LevelstrToLevel(String level) voidvoidvoidvoidvoidvoidvoid
-
Field Details
-
logger
-
THIS_CLASS_NAME
-
-
Constructor Details
-
JDKLogImpl
-
JDKLogImpl
-
-
Method Details
-
log
-
log
To correctly attribute the source class/method name to that of the JGroups class, we can't let JDK compute that. Instead, we do it on our own. -
isTraceEnabled
public boolean isTraceEnabled()- Specified by:
isTraceEnabledin interfaceLog
-
isDebugEnabled
public boolean isDebugEnabled()- Specified by:
isDebugEnabledin interfaceLog
-
isInfoEnabled
public boolean isInfoEnabled()- Specified by:
isInfoEnabledin interfaceLog
-
isWarnEnabled
public boolean isWarnEnabled()- Specified by:
isWarnEnabledin interfaceLog
-
isErrorEnabled
public boolean isErrorEnabled()- Specified by:
isErrorEnabledin interfaceLog
-
isFatalEnabled
public boolean isFatalEnabled()- Specified by:
isFatalEnabledin interfaceLog
-
trace
-
trace
-
trace
-
trace
-
debug
-
debug
-
debug
-
info
-
info
-
warn
-
warn
-
warn
-
error
-
error
-
error
-
fatal
-
fatal
-
fatal
-
getLevel
-
setLevel
Description copied from interface:LogSets the level of a logger. This method is used to dynamically change the logging level of a running system, e.g. via JMX. The appender of a level needs to exist. -
format
-
strToLevel
-