Package org.jgroups.logging
Class JDKLogImpl
- java.lang.Object
-
- org.jgroups.logging.JDKLogImpl
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.logging.Logger
logger
-
Constructor Summary
Constructors Constructor Description JDKLogImpl(java.lang.Class<?> clazz)
JDKLogImpl(java.lang.String category)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(java.lang.String msg)
void
debug(java.lang.String format, java.lang.Object... args)
void
debug(java.lang.String msg, java.lang.Throwable t)
void
error(java.lang.String msg)
void
error(java.lang.String format, java.lang.Object... args)
void
error(java.lang.String msg, java.lang.Throwable t)
void
fatal(java.lang.String msg)
void
fatal(java.lang.String format, java.lang.Object... args)
void
fatal(java.lang.String msg, java.lang.Throwable t)
protected java.lang.String
format(java.lang.String format, java.lang.Object... args)
java.lang.String
getLevel()
void
info(java.lang.String msg)
void
info(java.lang.String format, java.lang.Object... args)
boolean
isDebugEnabled()
boolean
isErrorEnabled()
boolean
isFatalEnabled()
boolean
isInfoEnabled()
boolean
isTraceEnabled()
boolean
isWarnEnabled()
void
setLevel(java.lang.String level)
Sets the level of a logger.protected static java.util.logging.Level
strToLevel(java.lang.String level)
void
trace(java.lang.Object msg)
void
trace(java.lang.String msg)
void
trace(java.lang.String format, java.lang.Object... args)
void
trace(java.lang.String msg, java.lang.Throwable t)
void
warn(java.lang.String msg)
void
warn(java.lang.String format, java.lang.Object... args)
void
warn(java.lang.String msg, java.lang.Throwable t)
-
-
-
Method Detail
-
isTraceEnabled
public boolean isTraceEnabled()
- Specified by:
isTraceEnabled
in interfaceLog
-
isDebugEnabled
public boolean isDebugEnabled()
- Specified by:
isDebugEnabled
in interfaceLog
-
isInfoEnabled
public boolean isInfoEnabled()
- Specified by:
isInfoEnabled
in interfaceLog
-
isWarnEnabled
public boolean isWarnEnabled()
- Specified by:
isWarnEnabled
in interfaceLog
-
isErrorEnabled
public boolean isErrorEnabled()
- Specified by:
isErrorEnabled
in interfaceLog
-
isFatalEnabled
public boolean isFatalEnabled()
- Specified by:
isFatalEnabled
in interfaceLog
-
trace
public void trace(java.lang.String format, java.lang.Object... args)
-
trace
public void trace(java.lang.String msg, java.lang.Throwable t)
-
debug
public void debug(java.lang.String format, java.lang.Object... args)
-
debug
public void debug(java.lang.String msg, java.lang.Throwable t)
-
info
public void info(java.lang.String format, java.lang.Object... args)
-
warn
public void warn(java.lang.String format, java.lang.Object... args)
-
warn
public void warn(java.lang.String msg, java.lang.Throwable t)
-
error
public void error(java.lang.String format, java.lang.Object... args)
-
error
public void error(java.lang.String msg, java.lang.Throwable t)
-
fatal
public void fatal(java.lang.String format, java.lang.Object... args)
-
fatal
public void fatal(java.lang.String msg, java.lang.Throwable t)
-
setLevel
public void setLevel(java.lang.String level)
Description copied from interface:Log
Sets 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
protected java.lang.String format(java.lang.String format, java.lang.Object... args)
-
strToLevel
protected static java.util.logging.Level strToLevel(java.lang.String level)
-
-