Class MultiplexerLogHandler
java.lang.Object
java.util.logging.Handler
com.scivicslab.pojoactor.workflow.accumulator.MultiplexerLogHandler
A java.util.logging Handler that forwards log messages to MultiplexerAccumulatorIIAR.
This handler bridges java.util.logging with the MultiplexerAccumulator system, allowing all log messages to be captured in the same output destinations (console, file, database) as command output and cowsay.
Log Format
Log messages are formatted as:
2026-01-17T12:27:54+09:00 INFO Starting workflow: main-collect-sysinfo
Message Format
Messages sent to MultiplexerAccumulator:
{
"source": "cli",
"type": "log-INFO",
"data": "2026-01-17T12:27:54+09:00 INFO Starting workflow: main-collect-sysinfo"
}
Usage
// After registering MultiplexerAccumulatorIIAR
MultiplexerLogHandler logHandler = new MultiplexerLogHandler(system);
Logger.getLogger("").addHandler(logHandler);
- Since:
- 2.12.0
- Author:
- devteam@scivicslab.com
-
Constructor Summary
ConstructorsConstructorDescriptionMultiplexerLogHandler(IIActorSystem system) Constructs a MultiplexerLogHandler. -
Method Summary
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
-
Constructor Details
-
MultiplexerLogHandler
Constructs a MultiplexerLogHandler.- Parameters:
system- the actor system to retrieve outputMultiplexer from
-
-
Method Details