creates the complete log message and passes it to the logger
| 112 | |
| 113 | //! creates the complete log message and passes it to the logger |
| 114 | void Logger::Helper::writeToLog() |
| 115 | { |
| 116 | const char* const levelName = LevelToText(level); |
| 117 | const QString completeMessage(QString("%1 %2 %3") |
| 118 | .arg(levelName, 5) |
| 119 | .arg(QDateTime::currentDateTime().toString(fmtDateTime)) |
| 120 | .arg(buffer) |
| 121 | ); |
| 122 | |
| 123 | Logger& logger = Logger::instance(); |
| 124 | QMutexLocker lock(&logger.d->logMutex); |
| 125 | logger.write(completeMessage); |
| 126 | } |
| 127 | |
| 128 | Logger::Helper::~Helper() |
| 129 | { |
nothing calls this directly
no test coverage detected