HydraExpress™ C++ API Reference Guide

 
Loading...
Searching...
No Matches
rwsf::LogSplitter Class Reference

Delivers a single logging message to two defined output locations. More...

#include <rwsf/core/LogSplitter.h>

Detailed Description

This Logger implementation acts as a splitter, channeling the log output to two loggers at the same time. To use this logger implementation, specify ".createLogSplitter" in the loggers configuration file. Under the logger definition, the following properties must be specified:

  • logger1 One of two named loggers to write to. Must be defined in the configuration file.
  • logger2 One of two named loggers to write to. Must be defined in the configuration file.

Example of definition in logger configuration file, typically loggers.xml:

<logger name="log.logger1" class="rwsf_core.createFileLogger">
<property name="filename" value="${RWSF_HOME}/logs/agent1.log"/>
</logger>
<logger name="log.logger2" class="rwsf_core.createFileLogger">
<property name="filename" value="${RWSF_HOME}/logs/agent2.log"/>
</logger>
<logger name="rwsf.agent.log" class="rwsf_core.createLogSplitter"
default="true">
<property name="logger1" value="log.logger1"/>
<property name="logger2" value="log.logger2"/>
</logger>

Copyright © 2026 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.