Class MultiplexerLogHandler

java.lang.Object
java.util.logging.Handler
com.scivicslab.actoriac.accumulator.MultiplexerLogHandler

public class MultiplexerLogHandler extends Handler
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