1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 10:05:46 -05:00
sdrangel/logging/fileloggersettings.h
beta-tester 1c952d3b0e force 24h time format
changed hh:mm to HH:mm
changed dd.MM.yyyy to yyyy-MM-dd to uniform all date format
2018-05-11 11:00:08 +02:00

43 lines
823 B
C++

/*
* fileloggersettings.h
*
* Created on: Nov 11, 2017
* Author: f4exb
*/
#ifndef LOGGING_FILELOGGERSETTINGS_H_
#define LOGGING_FILELOGGERSETTINGS_H_
#include <QtGlobal>
namespace qtwebapp {
struct FileLoggerSettings
{
QString fileName;
long maxSize;
int maxBackups;
QString msgFormat;
QString timestampFormat;
QtMsgType minLevel;
int bufferSize;
FileLoggerSettings() {
resetToDefaults();
}
void resetToDefaults() {
fileName = "logging.log";
maxSize = 1000000;
maxBackups = 2;
msgFormat = "{timestamp} {type} {msg}";
timestampFormat = "yyyy-MM-dd HH:mm:ss.zzz";
minLevel = QtDebugMsg;
bufferSize = 100;
}
};
} // end of namespace
#endif /* LOGGING_FILELOGGERSETTINGS_H_ */