|
Multi diag tools
|
File backend for error Logger. More...
#include <FileBackend.h>
Inheritance diagram for Mdt::ErrorLogger::FileBackend:
Collaboration diagram for Mdt::ErrorLogger::FileBackend:Public Member Functions | |
| FileBackend (QObject *parent=nullptr) | |
| Constructor. | |
| ~FileBackend () | |
| Destructor. | |
| bool | setLogFilePath (const QString &path, qint64 maxFileSize=1024 *1024) |
| Set path to log file. More... | |
| QString | logFilePath () const |
| Get log file path. | |
| QString | backupLogFilePath () const |
| Get backup log file path. | |
| qint64 | maxFileSize () const |
| Get maximum log file size. | |
| void | logError (const Error &error) override |
| Log given error. | |
| void | cleanup () override |
| Cleanup. | |
Public Member Functions inherited from Mdt::ErrorLogger::Backend | |
| Backend (QObject *parent=nullptr) | |
| Constructor. | |
| ~Backend () | |
| Destructor. | |
| template<typename T > | |
| void | setFormatEngine () |
| Set the format engine. More... | |
Additional Inherited Members | |
Public Slots inherited from Mdt::ErrorLogger::Backend | |
Protected Member Functions inherited from Mdt::ErrorLogger::Backend | |
| QString | formatError (const Mdt::Error &error) const |
| Format error to its string representation. More... | |
File backend for error Logger.
Definition at line 35 of file FileBackend.h.
| bool Mdt::ErrorLogger::FileBackend::setLogFilePath | ( | const QString & | path, |
| qint64 | maxFileSize = 1024*1024 |
||
| ) |
Set path to log file.
| path | Path to the log file. Note that a backup is made in same directory than file given by path, with a other exention. |
| maxFileSize | Maximum size allowed for log file [Byte] Also note that the file can be some bytes greater than specified size. |
Definition at line 42 of file FileBackend.cpp.
1.8.11