libdrmconf
0.10.4
A library to program DMR radios.
|
Implements a log-message. More...
#include <logger.hh>
Public Types | |
enum | Level { DEBUG , INFO , WARNING , ERROR , FATAL } |
Possible log-levels. More... | |
Public Member Functions | |
LogMessage (Level level, const QString &file, int line, const QString &message="") | |
Constructor. More... | |
LogMessage (const LogMessage &other) | |
Copy constructor. | |
virtual | ~LogMessage () |
Destructor. | |
Level | level () const |
Returns the level of the log message. | |
const QString & | file () const |
Returns the source file. | |
int | line () const |
Returns the source line. | |
const QString & | message () const |
Returns the log message content. | |
Protected Attributes | |
Level | _level |
The log level. | |
QString | _file |
The source file. | |
int | _line |
The source line. | |
QString | _message |
The log message content. | |
Implements a log-message.
Instances of this class will forward the content of this message automatically to the Logger
instance upon destruction. That means, you do not need to forward log messages explicitly.
enum LogMessage::Level |
Possible log-levels.
LogMessage::LogMessage | ( | Level | level, |
const QString & | file, | ||
int | line, | ||
const QString & | message = "" |
||
) |
Constructor.
level | Specifies the level of the log message. |
file | Specifies the source file. |
line | Specifies the source line. |
message | Specifies the log message content. |