#include <rwsf/core/LogMessage.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.
virtual void init(const rwsf::Config& config);
Initializes a default constructed rwsf::LogWriter instance.
virtual 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.
©2004-2007 Copyright Quovadx, Inc. All Rights Reserved.
Quovadx and Rogue Wave are registered trademarks and HydraSDO is a trademark of Quovadx, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.