libsdr
0.1.0
A simple SDR library
|
A log message. More...
#include <logger.hh>
Public Member Functions | |
LogMessage (LogLevel level, const std::string &msg="") | |
Constructor. More... | |
LogMessage (const LogMessage &other) | |
Copy constructor. More... | |
virtual | ~LogMessage () |
Destructor. More... | |
LogLevel | level () const |
Returns the level of the message. More... | |
std::string | message () const |
Returns the message. More... | |
Protected Attributes | |
LogLevel | _level |
The level of the message. More... | |
A log message.
Bundles a message with a level.
LogMessage::LogMessage | ( | LogLevel | level, |
const std::string & | msg = "" |
||
) |
Constructor.
level | Specified the log-level of the message. |
msg | An optional message. |
LogMessage::LogMessage | ( | const LogMessage & | other | ) |
Copy constructor.
|
virtual |
Destructor.
LogLevel LogMessage::level | ( | ) | const |
Returns the level of the message.
|
inline |
Returns the message.
|
protected |
The level of the message.