SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
fileloggersettings.h
Go to the documentation of this file.
1 /*
2  * fileloggersettings.h
3  *
4  * Created on: Nov 11, 2017
5  * Author: f4exb
6  */
7 
8 #ifndef LOGGING_FILELOGGERSETTINGS_H_
9 #define LOGGING_FILELOGGERSETTINGS_H_
10 
11 #include <QtGlobal>
12 
13 namespace qtwebapp {
14 
16 {
17  QString fileName;
18  long maxSize;
20  QString msgFormat;
21  QString timestampFormat;
22  QtMsgType minLevel;
24 
27  }
28 
29  void resetToDefaults() {
30  fileName = "logging.log";
31  maxSize = 1000000;
32  maxBackups = 2;
33  msgFormat = "{timestamp} {type} {msg}";
34  timestampFormat = "yyyy-MM-dd HH:mm:ss.zzz";
35  minLevel = QtDebugMsg;
36  bufferSize = 100;
37  }
38 };
39 
40 } // end of namespace
41 
42 #endif /* LOGGING_FILELOGGERSETTINGS_H_ */