Log manager.
More...
#include <log.h>
Log manager.
Definition at line 37 of file log.h.
| void Log::addEntry |
( |
const QString & |
string | ) |
|
|
slot |
Prints the string to specified output and appends a '\n' character to the end of that string. Additional formatting is also applied if certain flags are enabled.
- See Also
- newEntry()
Definition at line 52 of file log.cpp.
| void Log::addUnformattedEntry |
( |
const QString & |
string | ) |
|
|
slot |
| bool Log::areTimestampsEnabled |
( |
| ) |
const |
Timestamps are in format [hh:mm:ss]. Enabled by default.
Definition at line 77 of file log.cpp.
| void Log::clearContent |
( |
| ) |
|
|
slot |
Clears log content stored in the memory.
Definition at line 82 of file log.cpp.
| const QString & Log::content |
( |
| ) |
const |
Entire content of the log.
Definition at line 87 of file log.cpp.
| bool Log::isPrintingToStderr |
( |
| ) |
const |
If true all new entries will also be printed to stderr.
Otherwise entries are stored only in the logContent member. Default is true.
Definition at line 92 of file log.cpp.
| bool Log::isPrintingToStdout |
( |
| ) |
const |
If true all new entries will also be printed to stderr.
Otherwise entries are stored only in the logContent member. Default is true.
- Deprecated:
- Use isPrintingToStderr().
Definition at line 97 of file log.cpp.
| void Log::newEntry |
( |
const QString & |
entry | ) |
|
|
signal |
Sends out an already formatted new entry. Please note that there are no additional newline character appended to the entry string. This is emitted by addEntry() and addUnformattedEntry() slots.
| Log & Log::operator<< |
( |
const QString & |
string | ) |
|
| void Log::setPrintingToStdout |
( |
bool |
b | ) |
|
Global instance of the logger.
Definition at line 45 of file log.h.
The documentation for this class was generated from the following files: