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 JGroupsLog
that 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 givensl4j
logger.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(String msg)
void
debug(String msg, Object... args)
void
debug(String msg, Throwable t)
void
error(String msg)
void
error(String msg, Object... args)
void
error(String msg, Throwable t)
void
fatal(String msg)
void
fatal(String msg, Object... args)
void
fatal(String msg, Throwable throwable)
String
getLevel()
void
info(String msg)
void
info(String msg, Object... args)
boolean
isDebugEnabled()
boolean
isErrorEnabled()
boolean
isFatalEnabled()
boolean
isInfoEnabled()
boolean
isTraceEnabled()
boolean
isWarnEnabled()
void
setLevel(String level)
void
trace(Object msg)
void
trace(String msg)
void
trace(String msg, Object... args)
void
trace(String msg, Throwable t)
void
warn(String msg)
void
warn(String msg, Object... args)
void
warn(String msg, Throwable t)
-
-
-
Method Detail
-
isFatalEnabled
public boolean isFatalEnabled()
- Specified by:
isFatalEnabled
in interfaceorg.jgroups.logging.Log
-
isErrorEnabled
public boolean isErrorEnabled()
- Specified by:
isErrorEnabled
in interfaceorg.jgroups.logging.Log
-
isWarnEnabled
public boolean isWarnEnabled()
- Specified by:
isWarnEnabled
in interfaceorg.jgroups.logging.Log
-
isInfoEnabled
public boolean isInfoEnabled()
- Specified by:
isInfoEnabled
in interfaceorg.jgroups.logging.Log
-
isDebugEnabled
public boolean isDebugEnabled()
- Specified by:
isDebugEnabled
in interfaceorg.jgroups.logging.Log
-
isTraceEnabled
public boolean isTraceEnabled()
- Specified by:
isTraceEnabled
in interfaceorg.jgroups.logging.Log
-
trace
public void trace(String msg)
- Specified by:
trace
in interfaceorg.jgroups.logging.Log
-
trace
public void trace(String msg, Object... args)
- Specified by:
trace
in interfaceorg.jgroups.logging.Log
-
trace
public void trace(String msg, Throwable t)
- Specified by:
trace
in interfaceorg.jgroups.logging.Log
-
debug
public void debug(String msg)
- Specified by:
debug
in interfaceorg.jgroups.logging.Log
-
debug
public void debug(String msg, Object... args)
- Specified by:
debug
in interfaceorg.jgroups.logging.Log
-
debug
public void debug(String msg, Throwable t)
- Specified by:
debug
in interfaceorg.jgroups.logging.Log
-
info
public void info(String msg)
- Specified by:
info
in interfaceorg.jgroups.logging.Log
-
info
public void info(String msg, Object... args)
- Specified by:
info
in interfaceorg.jgroups.logging.Log
-
warn
public void warn(String msg)
- Specified by:
warn
in interfaceorg.jgroups.logging.Log
-
warn
public void warn(String msg, Object... args)
- Specified by:
warn
in interfaceorg.jgroups.logging.Log
-
warn
public void warn(String msg, Throwable t)
- Specified by:
warn
in interfaceorg.jgroups.logging.Log
-
error
public void error(String msg)
- Specified by:
error
in interfaceorg.jgroups.logging.Log
-
error
public void error(String msg, Object... args)
- Specified by:
error
in interfaceorg.jgroups.logging.Log
-
error
public void error(String msg, Throwable t)
- Specified by:
error
in interfaceorg.jgroups.logging.Log
-
fatal
public void fatal(String msg, Object... args)
- Specified by:
fatal
in interfaceorg.jgroups.logging.Log
-
fatal
public void fatal(String msg)
- Specified by:
fatal
in interfaceorg.jgroups.logging.Log
-
fatal
public void fatal(String msg, Throwable throwable)
- Specified by:
fatal
in interfaceorg.jgroups.logging.Log
-
trace
public void trace(Object msg)
- Specified by:
trace
in interfaceorg.jgroups.logging.Log
-
setLevel
public void setLevel(String level)
- Specified by:
setLevel
in interfaceorg.jgroups.logging.Log
-
getLevel
public String getLevel()
- Specified by:
getLevel
in interfaceorg.jgroups.logging.Log
-
-