Does not inherit
#include rwsf/core/LogWriter.h
rwsf::LogWriter provides an abstract interface for implementing write functions for specific data sinks.
LogWriter();
Default constructor.
LogWriter(const LogFormatter & formatter);
Constructor. Sets the formatter that will be used by this writer. The formatter will be deallocated on destruction. If formatter is NULL, the message will be passed unchanged to the underlying data channel.
~LogWriter();
Destructor.
void init(const rwsf::Config & config);
Initializes a default constructed rwsf::LogWriter instance.
void log(Logger::LogLevel level, const std::string & message);
Logs the given event to the underlying data channel. If a formatter object was supplied, it will be executed on the message before it is passed to the underlying channel.
std::string getEpilog() const;
Returns the epilog (if any) from the formatter.
std::string getProlog() const;
Returns the prolog (if any) from the formatter.
© Copyright Rogue Wave Software, Inc. All Rights Reserved. All Rights Reserved. Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. HydraExpress is a trademark of Rogue Wave Software, Inc. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.