Class JGroupsLogger
- java.lang.Object
-
- de.xima.fc.cluster.impl.jgroup.log.JGroupsLogger
-
- All Implemented Interfaces:
org.jgroups.logging.Log
public class JGroupsLogger extends Object implements org.jgroups.logging.Log
Implementation of a JGroupsLogthat logs messages viasl4j.- Since:
- 3.1.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description JGroupsLogger(org.slf4j.Logger logger)Creates a new JGroups logger that logs message via the givensl4jlogger.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(String msg)voiddebug(String msg, Object... args)voiddebug(String msg, Throwable t)voiderror(String msg)voiderror(String msg, Object... args)voiderror(String msg, Throwable t)voidfatal(String msg)voidfatal(String msg, Object... args)voidfatal(String msg, Throwable throwable)StringgetLevel()voidinfo(String msg)voidinfo(String msg, Object... args)booleanisDebugEnabled()booleanisErrorEnabled()booleanisFatalEnabled()booleanisInfoEnabled()booleanisTraceEnabled()booleanisWarnEnabled()voidsetLevel(String level)voidtrace(Object msg)voidtrace(String msg)voidtrace(String msg, Object... args)voidtrace(String msg, Throwable t)voidwarn(String msg)voidwarn(String msg, Object... args)voidwarn(String msg, Throwable t)
-
-
-
Method Detail
-
isFatalEnabled
public boolean isFatalEnabled()
- Specified by:
isFatalEnabledin interfaceorg.jgroups.logging.Log
-
isErrorEnabled
public boolean isErrorEnabled()
- Specified by:
isErrorEnabledin interfaceorg.jgroups.logging.Log
-
isWarnEnabled
public boolean isWarnEnabled()
- Specified by:
isWarnEnabledin interfaceorg.jgroups.logging.Log
-
isInfoEnabled
public boolean isInfoEnabled()
- Specified by:
isInfoEnabledin interfaceorg.jgroups.logging.Log
-
isDebugEnabled
public boolean isDebugEnabled()
- Specified by:
isDebugEnabledin interfaceorg.jgroups.logging.Log
-
isTraceEnabled
public boolean isTraceEnabled()
- Specified by:
isTraceEnabledin interfaceorg.jgroups.logging.Log
-
trace
public void trace(String msg)
- Specified by:
tracein interfaceorg.jgroups.logging.Log
-
trace
public void trace(String msg, Object... args)
- Specified by:
tracein interfaceorg.jgroups.logging.Log
-
trace
public void trace(String msg, Throwable t)
- Specified by:
tracein interfaceorg.jgroups.logging.Log
-
debug
public void debug(String msg)
- Specified by:
debugin interfaceorg.jgroups.logging.Log
-
debug
public void debug(String msg, Object... args)
- Specified by:
debugin interfaceorg.jgroups.logging.Log
-
debug
public void debug(String msg, Throwable t)
- Specified by:
debugin interfaceorg.jgroups.logging.Log
-
info
public void info(String msg)
- Specified by:
infoin interfaceorg.jgroups.logging.Log
-
info
public void info(String msg, Object... args)
- Specified by:
infoin interfaceorg.jgroups.logging.Log
-
warn
public void warn(String msg)
- Specified by:
warnin interfaceorg.jgroups.logging.Log
-
warn
public void warn(String msg, Object... args)
- Specified by:
warnin interfaceorg.jgroups.logging.Log
-
warn
public void warn(String msg, Throwable t)
- Specified by:
warnin interfaceorg.jgroups.logging.Log
-
error
public void error(String msg)
- Specified by:
errorin interfaceorg.jgroups.logging.Log
-
error
public void error(String msg, Object... args)
- Specified by:
errorin interfaceorg.jgroups.logging.Log
-
error
public void error(String msg, Throwable t)
- Specified by:
errorin interfaceorg.jgroups.logging.Log
-
fatal
public void fatal(String msg, Object... args)
- Specified by:
fatalin interfaceorg.jgroups.logging.Log
-
fatal
public void fatal(String msg)
- Specified by:
fatalin interfaceorg.jgroups.logging.Log
-
fatal
public void fatal(String msg, Throwable throwable)
- Specified by:
fatalin interfaceorg.jgroups.logging.Log
-
trace
public void trace(Object msg)
- Specified by:
tracein interfaceorg.jgroups.logging.Log
-
setLevel
public void setLevel(String level)
- Specified by:
setLevelin interfaceorg.jgroups.logging.Log
-
getLevel
public String getLevel()
- Specified by:
getLevelin interfaceorg.jgroups.logging.Log
-
-