|
swift
|
Class for emitting a log message. More...
#include <logmessage.h>
Public Member Functions | |
| CLogMessage ()=default | |
| Construct a message with the "uncategorized" category. | |
| CLogMessage (const char *file, int line, const char *function) | |
| Constructor taking filename, line number, and function name, for uncategorized verbose debug messages. | |
| ~CLogMessage () | |
| Destructor. This actually emits the message. | |
| operator CStatusMessage () | |
| Convert to CStatusMessage for returning the message directly from the function which generated it. | |
| CMessageBase ()=default | |
| Inheriting constructors. | |
| CMessageBase (const CLogCategory &category) | |
| Inheriting constructors. | |
| CMessageBase (const CLogCategoryList &categories) | |
| Inheriting constructors. | |
| CMessageBase (const CLogCategoryList &categories, const CLogCategory &extra) | |
| Inheriting constructors. | |
| CMessageBase (const CLogCategoryList &categories, const CLogCategoryList &extra) | |
| Inheriting constructors. | |
Static Public Member Functions | |
| static void | preformatted (const CStatusMessage &statusMessage) |
| Sends a verbatim, preformatted message to the log. | |
| static void | preformatted (const CStatusMessageList &statusMessages) |
| Sends a list of verbatim, preformatted messages to the log. | |
Additional Inherited Members |
Class for emitting a log message.
Works similar to the qDebug, qWarning, qCritical family of functions.
The member functions debug, info, warning, error, and the stream operators all return a reference to *this, so they can be chained together.
The categories are arbitrary string tags which can be attached to the message to categorize it. A message can have more than one category. The categories can be used for filtering by message handlers.
Definition at line 26 of file logmessage.h.
|
inlineexplicit |
Inheriting constructors.
Definition at line 168 of file statusmessage.h.
|
inlineexplicit |
Inheriting constructors.
Definition at line 171 of file statusmessage.h.
|
inline |
Inheriting constructors.
Definition at line 174 of file statusmessage.h.
|
inline |
Inheriting constructors.
Definition at line 180 of file statusmessage.h.