class Gambit::Logging::StdLogger
Logger for ‘standard’ messages.
#include <logging.hpp>
Inherits from Gambit::Logging::BaseLogger
Public Functions
Name | |
---|---|
StdLogger(std::ostream & logstream) Constructor. | |
StdLogger(const std::string & filename) Alternate constructor. | |
virtual | ~StdLogger() Destructor. |
virtual void | write(const SortedMessage & mail) Write message. |
virtual void | flush() Flush stream buffer. |
void | writetags(const std::set< LogTag > & tags) Look up names corresponding to tags and write them out to the stream. |
void | writetags(const std::set< int > & tags) |
Additional inherited members
Public Functions inherited from Gambit::Logging::BaseLogger
Name | |
---|---|
virtual | ~BaseLogger() Virtual destructor so we can delete the loggers by pointer to base. |
Public Functions Documentation
function StdLogger
StdLogger(
std::ostream & logstream
)
Constructor.
“Standard” logger class
Constructor Attach logger object to an existing stream
function StdLogger
StdLogger(
const std::string & filename
)
Alternate constructor.
Open new file stream and manage it internally.
function ~StdLogger
virtual ~StdLogger()
Destructor.
function write
virtual void write(
const SortedMessage & mail
)
Write message.
Reimplements: Gambit::Logging::BaseLogger::write
Write message to log file.
function flush
virtual void flush()
Flush stream buffer.
Reimplements: Gambit::Logging::BaseLogger::flush
function writetags
void writetags(
const std::set< LogTag > & tags
)
Look up names corresponding to tags and write them out to the stream.
function writetags
void writetags(
const std::set< int > & tags
)
Updated on 2024-07-18 at 13:53:31 +0000