Class LogForwarder
- java.lang.Object
-
- com.levigo.jadice.server.core.util.logging.LogForwarder
-
- All Implemented Interfaces:
org.jadice.util.log.Logger
public class LogForwarder extends Object implements org.jadice.util.log.Logger
Logger that forwards log events to the calling client that is associated to the givenWorkerController
(i.e.NodeWorker
)Caveat: This logger forwards only ERRORs, FATALs and WARNINGs to the client!
-
-
Constructor Summary
Constructors Constructor Description LogForwarder(QualifiedLogEventReceiver deligate, org.jadice.util.log.qualified.MessageID messageId, EnumSet<org.jadice.util.log.Level> enabledLevels)
Construct aLogForwarder
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(String s)
void
debug(String s, Object... objects)
void
debug(String s, Throwable throwable)
void
error(String s)
void
error(String s, Object... objects)
void
error(String s, Throwable throwable)
void
fatal(String s)
void
fatal(String s, Object... objects)
void
fatal(String s, Throwable throwable)
String
getName()
void
info(String s)
void
info(String s, Object... objects)
void
info(String s, Throwable throwable)
boolean
isDebugEnabled()
boolean
isErrorEnabled()
boolean
isFatalEnabled()
boolean
isInfoEnabled()
boolean
isTraceEnabled()
boolean
isWarnEnabled()
void
trace(String s)
void
trace(String s, Object... objects)
void
trace(String s, Throwable throwable)
void
warn(String s)
void
warn(String s, Object... objects)
void
warn(String s, Throwable throwable)
-
-
-
Constructor Detail
-
LogForwarder
public LogForwarder(QualifiedLogEventReceiver deligate, org.jadice.util.log.qualified.MessageID messageId, EnumSet<org.jadice.util.log.Level> enabledLevels)
Construct aLogForwarder
.- Parameters:
deligate
- TheWorkerController
which is governed by this LoggermessageId
- ThisMessageID
that events will havenenabledLevels
- TheLevel
s for which the logging is enabled
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.jadice.util.log.Logger
-
isDebugEnabled
public boolean isDebugEnabled()
- Specified by:
isDebugEnabled
in interfaceorg.jadice.util.log.Logger
-
debug
public void debug(String s)
- Specified by:
debug
in interfaceorg.jadice.util.log.Logger
-
debug
public void debug(String s, Object... objects)
- Specified by:
debug
in interfaceorg.jadice.util.log.Logger
-
debug
public void debug(String s, Throwable throwable)
- Specified by:
debug
in interfaceorg.jadice.util.log.Logger
-
isErrorEnabled
public boolean isErrorEnabled()
- Specified by:
isErrorEnabled
in interfaceorg.jadice.util.log.Logger
-
error
public void error(String s)
- Specified by:
error
in interfaceorg.jadice.util.log.Logger
-
error
public void error(String s, Object... objects)
- Specified by:
error
in interfaceorg.jadice.util.log.Logger
-
error
public void error(String s, Throwable throwable)
- Specified by:
error
in interfaceorg.jadice.util.log.Logger
-
isFatalEnabled
public boolean isFatalEnabled()
- Specified by:
isFatalEnabled
in interfaceorg.jadice.util.log.Logger
-
fatal
public void fatal(String s)
- Specified by:
fatal
in interfaceorg.jadice.util.log.Logger
-
fatal
public void fatal(String s, Object... objects)
- Specified by:
fatal
in interfaceorg.jadice.util.log.Logger
-
fatal
public void fatal(String s, Throwable throwable)
- Specified by:
fatal
in interfaceorg.jadice.util.log.Logger
-
isInfoEnabled
public boolean isInfoEnabled()
- Specified by:
isInfoEnabled
in interfaceorg.jadice.util.log.Logger
-
info
public void info(String s)
- Specified by:
info
in interfaceorg.jadice.util.log.Logger
-
info
public void info(String s, Object... objects)
- Specified by:
info
in interfaceorg.jadice.util.log.Logger
-
info
public void info(String s, Throwable throwable)
- Specified by:
info
in interfaceorg.jadice.util.log.Logger
-
isTraceEnabled
public boolean isTraceEnabled()
- Specified by:
isTraceEnabled
in interfaceorg.jadice.util.log.Logger
-
trace
public void trace(String s)
- Specified by:
trace
in interfaceorg.jadice.util.log.Logger
-
trace
public void trace(String s, Object... objects)
- Specified by:
trace
in interfaceorg.jadice.util.log.Logger
-
trace
public void trace(String s, Throwable throwable)
- Specified by:
trace
in interfaceorg.jadice.util.log.Logger
-
isWarnEnabled
public boolean isWarnEnabled()
- Specified by:
isWarnEnabled
in interfaceorg.jadice.util.log.Logger
-
warn
public void warn(String s)
- Specified by:
warn
in interfaceorg.jadice.util.log.Logger
-
warn
public void warn(String s, Object... objects)
- Specified by:
warn
in interfaceorg.jadice.util.log.Logger
-
-