HydraExpress™ C++ API Reference Guide

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

Writes logging messages to a file. More...

#include <rwsf/core/LogFileWriter.h>

Inheritance diagram for rwsf::LogFileWriter:
rwsf::LogRotatingFileWriter

Detailed Description

This Logger implementation writes to a file. To use it, you must specify ".createFileLogger" in the logger configuration file. Under the logger definition, the following properties must be specified:

  • filename The file to log to.
  • mode (optional) Set to overwrite if you want the file to be overwritten on every startup, or append to add to the existing file. Defaults to overwrite.
  • formatter (optional) The line formatter. Usually rwsf_core.createLogTimeFormatter. Defaults to no special formatting.

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

<logger name="rwsf.agent.logfile" class="rwsf_core.createFileLogger">
<property name="filename" value="${RWSF_HOME}/logs/agent.log"/>
<property name="formatter" value="rwsf_core.createLogTimeFormatter"/>
<property name="mode" value="overwrite"/>
</logger>

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