libsdr
0.1.0
A simple SDR library
|
Serializes log message into the specified stream. More...
#include <logger.hh>
Public Member Functions | |
StreamLogHandler (std::ostream &stream, LogLevel level) | |
Constructor. More... | |
virtual | ~StreamLogHandler () |
Destructor. More... | |
virtual void | handle (const LogMessage &msg) |
Handles the message. More... | |
Public Member Functions inherited from sdr::LogHandler | |
virtual | ~LogHandler () |
Destructor. More... | |
Protected Attributes | |
std::ostream & | _stream |
The output stream. More... | |
LogLevel | _level |
The minimum log-level. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from sdr::LogHandler | |
LogHandler () | |
Hidden constructor. More... | |
Serializes log message into the specified stream.
StreamLogHandler::StreamLogHandler | ( | std::ostream & | stream, |
LogLevel | level | ||
) |
Constructor.
stream | Specifies the stream, the messages are serialized into. |
level | Specifies the minimum log level of the messages being serialized. |
|
virtual |
Destructor.
|
virtual |
Handles the message.
Implements sdr::LogHandler.
|
protected |
The minimum log-level.
|
protected |
The output stream.