public class LogForwarder extends Object implements com.levigo.util.log.Logger
Logger that forwards log events to the calling client that is associated to the
given WorkerController
(i.e. NodeWorker
)
Caveat: This logger forwards only ERRORs, FATALs and WARNINGs to the client!
Constructor and Description |
---|
LogForwarder(WorkerController<?> deligate,
com.levigo.util.log.qualified.MessageID messageId,
EnumSet<com.levigo.util.log.Level> enabledLevels)
Construct a
LogForwarder . |
Modifier and Type | Method and Description |
---|---|
void |
debug(String s) |
void |
debug(String s,
Throwable throwable) |
void |
error(String s) |
void |
error(String s,
Throwable throwable) |
void |
fatal(String s) |
void |
fatal(String s,
Throwable throwable) |
String |
getName() |
void |
info(String s) |
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,
Throwable throwable) |
void |
warn(String s) |
void |
warn(String s,
Throwable throwable) |
public LogForwarder(WorkerController<?> deligate, com.levigo.util.log.qualified.MessageID messageId, EnumSet<com.levigo.util.log.Level> enabledLevels)
LogForwarder
.deligate
- The WorkerController
which is governed by this LoggermessageId
- This MessageID
that events will havenenabledLevels
- The Level
s for which the logging is enabledpublic String getName()
getName
in interface com.levigo.util.log.Logger
public boolean isDebugEnabled()
isDebugEnabled
in interface com.levigo.util.log.Logger
public void debug(String s)
debug
in interface com.levigo.util.log.Logger
public void debug(String s, Throwable throwable)
debug
in interface com.levigo.util.log.Logger
public boolean isErrorEnabled()
isErrorEnabled
in interface com.levigo.util.log.Logger
public void error(String s)
error
in interface com.levigo.util.log.Logger
public void error(String s, Throwable throwable)
error
in interface com.levigo.util.log.Logger
public boolean isFatalEnabled()
isFatalEnabled
in interface com.levigo.util.log.Logger
public void fatal(String s)
fatal
in interface com.levigo.util.log.Logger
public void fatal(String s, Throwable throwable)
fatal
in interface com.levigo.util.log.Logger
public boolean isInfoEnabled()
isInfoEnabled
in interface com.levigo.util.log.Logger
public void info(String s)
info
in interface com.levigo.util.log.Logger
public void info(String s, Throwable throwable)
info
in interface com.levigo.util.log.Logger
public boolean isTraceEnabled()
isTraceEnabled
in interface com.levigo.util.log.Logger
public void trace(String s)
trace
in interface com.levigo.util.log.Logger
public void trace(String s, Throwable throwable)
trace
in interface com.levigo.util.log.Logger
public boolean isWarnEnabled()
isWarnEnabled
in interface com.levigo.util.log.Logger
public void warn(String s)
warn
in interface com.levigo.util.log.Logger
Copyright © 2017 levigo holding gmbh. All rights reserved.