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.
logging
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
15
struct
FileLoggerSettings
16
{
17
QString
fileName
;
18
long
maxSize
;
19
int
maxBackups
;
20
QString
msgFormat
;
21
QString
timestampFormat
;
22
QtMsgType
minLevel
;
23
int
bufferSize
;
24
25
FileLoggerSettings
() {
26
resetToDefaults
();
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_ */
qtwebapp::FileLoggerSettings::FileLoggerSettings
FileLoggerSettings()
Definition:
fileloggersettings.h:25
qtwebapp::FileLoggerSettings::resetToDefaults
void resetToDefaults()
Definition:
fileloggersettings.h:29
qtwebapp::FileLoggerSettings::maxSize
long maxSize
Definition:
fileloggersettings.h:18
qtwebapp::FileLoggerSettings::fileName
QString fileName
Definition:
fileloggersettings.h:17
qtwebapp::FileLoggerSettings::bufferSize
int bufferSize
Definition:
fileloggersettings.h:23
qtwebapp::FileLoggerSettings::msgFormat
QString msgFormat
Definition:
fileloggersettings.h:20
qtwebapp::FileLoggerSettings
Definition:
fileloggersettings.h:15
qtwebapp::FileLoggerSettings::maxBackups
int maxBackups
Definition:
fileloggersettings.h:19
qtwebapp
Definition:
httpconnectionhandler.h:23
qtwebapp::FileLoggerSettings::timestampFormat
QString timestampFormat
Definition:
fileloggersettings.h:21
qtwebapp::FileLoggerSettings::minLevel
QtMsgType minLevel
Definition:
fileloggersettings.h:22
Generated on Fri Aug 2 2019 17:56:29 for SDRAngel by
1.8.13