HydraExpress 4.7 |
HydraExpress C++ API Reference Guide |
Product Documentation:
Documentation Home |
Writes logging messages to a file. More...
#include <rwsf/core/LogFileWriter.h>
Additional Inherited Members | |
Public Member Functions inherited from rwsf::LogWriter | |
LogWriter () | |
LogWriter (const LogFormatter &formatter) | |
~LogWriter () | |
virtual void | init (const rwsf::Config &config) |
virtual void | log (Logger::LogLevel level, const std::string &message) |
Protected Member Functions inherited from rwsf::LogWriter | |
std::string | getEpilog () const |
std::string | getProlog () const |
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:
Copyright © Rogue Wave Software, Inc. All Rights Reserved.
The Rogue Wave name and logo are registered trademarks of Rogue Wave Software, and HydraExpress is a trademark of Rogue Wave Software. All other trademarks are the property of their respective owners.