Class JavaLoggingForwarder
- java.lang.Object
-
- java.util.logging.Handler
-
- com.levigo.jadice.server.core.util.logging.JavaLoggingForwarder
-
public class JavaLoggingForwarder extends Handler
Forwards events from ajava util logger
to theWorkerController
(i.eNodeWorker
) and the Apache Commons Logging Framework.Note: Only events inside the
Thread
from which the constructor was called will be forwarded.- Since:
- jadice server 4.2.1.5
-
-
Field Summary
Fields Modifier and Type Field Description static Set<Level>
ALL_LEVELS
-
Constructor Summary
Constructors Constructor Description JavaLoggingForwarder(QualifiedLogEventReceiver delegate, org.jadice.util.log.qualified.MessageID messageID, Set<Level> enabledLevels)
Constructs aJavaLoggingForwarder
for the currentThread
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
flush()
void
publish(LogRecord record)
-
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
-
-
-
-
Constructor Detail
-
JavaLoggingForwarder
public JavaLoggingForwarder(QualifiedLogEventReceiver delegate, org.jadice.util.log.qualified.MessageID messageID, Set<Level> enabledLevels)
Constructs aJavaLoggingForwarder
for the currentThread
.- Parameters:
delegate
- The destination of the logging events.messageID
- TheMessageID
under which events are forwardedenabledLevels
-Level
s that are forwarded. Mapping:
-
-
Method Detail
-
close
public void close() throws SecurityException
- Specified by:
close
in classHandler
- Throws:
SecurityException
-
-