Class QualifiedLogForwarder
- java.lang.Object
-
- com.levigo.jadice.server.core.util.logging.QualifiedLogForwarder
-
- All Implemented Interfaces:
org.jadice.util.log.qualified.QualifiedLogListener
public class QualifiedLogForwarder extends Object implements org.jadice.util.log.qualified.QualifiedLogListener
ForwardsQualifiedLogEvent
s to aWorkerController
.Usage:
QualifiedLogForwarder logForwarder = new QualifiedLogForwarder(delegate); org.jadice.util.log.config.LoggingConfiguration.getGlobal() .addThreadLocalQualifiedLogListener(logForwarder); try { // Do the work } finally { org.jadice.util.log.config.LoggingConfiguration.getGlobal() .removeThreadLocalQualifiedLogListener(logForwarder); }
-
-
Constructor Summary
Constructors Constructor Description QualifiedLogForwarder(QualifiedLogEventReceiver delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
error(org.jadice.util.log.qualified.QualifiedLogEvent event)
void
fatal(org.jadice.util.log.qualified.QualifiedLogEvent event)
void
warn(org.jadice.util.log.qualified.QualifiedLogEvent event)
-
-
-
Constructor Detail
-
QualifiedLogForwarder
public QualifiedLogForwarder(QualifiedLogEventReceiver delegate)
-
-
Method Detail
-
error
public void error(org.jadice.util.log.qualified.QualifiedLogEvent event)
- Specified by:
error
in interfaceorg.jadice.util.log.qualified.QualifiedLogListener
-
fatal
public void fatal(org.jadice.util.log.qualified.QualifiedLogEvent event)
- Specified by:
fatal
in interfaceorg.jadice.util.log.qualified.QualifiedLogListener
-
warn
public void warn(org.jadice.util.log.qualified.QualifiedLogEvent event)
- Specified by:
warn
in interfaceorg.jadice.util.log.qualified.QualifiedLogListener
-
-