forked from yihuai-gao/CommandCenter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththorlabs_tsi_logger.cfg
124 lines (116 loc) · 6.95 KB
/
thorlabs_tsi_logger.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
// Specifies the path where the log files are created.
// This setting is optional and if ommitted, the log files are
// are created in the same directory that the logger DLL resides in.
THORLABS_TSI_LOGGER_LOG_FILE_PATH "C:\SDK_log_files\"
// Format for global log specification:
// GLOBAL [log channel options] [logging priority] [Log file size limit in MB] [Number of log files to keep] [Log statement format]
// [log channel options] ~= 'c', 'a', 'm', 'g', 'u'
// c - log to the console
// a - log to the master log file
// m - log to the module log file
// g - log to the group log file(s)
// u - log to the unique (module + group) log file
// [logging priority] ~= [Fatal, Critical, Error, Warning, Notice, Information, Debug, Trace]
// [Log file size limit in MB] ~= specifies an integral limit in MB for the log file size.
// All surplus log statements will be sent to a newly created log file with a name that
// is derived from the original log file name.
// This setting is optional - if it is ommitted, then the log file is allowed to grow
// unbounded.
// [Number of log files to keep] ~= specifies the number of log files of this type to preserve.
// If the number of log files exceeds this number, the logger will delete extra log files to
// maintain this log file count. The logger will always delete the oldest log files first.
// This setting is optional - if it is omitted, then the number of log files are allowed to
// proliferate unbounded.
// [Log statement format] ~= 'n', 'd', 'm', 'p', 'l', 't'
// n - include the sequence number
// d - include the date/time stamp
// m - include the module name
// p - include the log priority
// t - include the thread ID
// l - include the source file location
// This setting is optional. If it is ommitted, none of the above
// metadata is prepended to the log statement.
//
// NOTE: The global settings will override the corresponding settings for group and module
// loggers with the exception of the log file size limit. The global log file size limit
// does NOT override any other limit settings.
THORLABS_TSI_LOGGER_GLOBAL camgu Trace ndmplt
// Format for group log specification:
// GROUP [logging priority] [Log file size limit in MB] [Number of log files to keep] [Log statement format]
// [logging priority] ~= [Fatal, Critical, Error, Warning, Notice, Information, Debug, Trace]
// [Log file size limit in MB] ~= specifies an integral limit in MB for the log file size.
// All surplus log statements will be sent to a newly created log file with a name that
// is derived from the original log file name.
// This setting is optional - if it is ommitted, then the log file is allowed to grow
// unbounded.
// [Number of log files to keep] ~= specifies the number of log files of this type to preserve.
// If the number of log files exceeds this number, the logger will delete extra log files to
// maintain this log file count. The logger will always delete the oldest log files first.
// This setting is optional - if it is omitted, then the number of log files are allowed to
// proliferate unbounded.
// [Log statement format] ~= 'n', 'd', 'm', 'p', 'l', 't'
// n - include the sequence number
// d - include the date/time stamp
// m - include the module name
// p - include the log priority
// t - include the thread ID
// l - include the source file location
// This setting is optional. If it is ommitted, none of the above
// metadata is prepended to the log statement.
THORLABS_TSI_LOGGER_GROUP Trace ndmplt
// Format for console log specification:
// CONSOLE [logging priority] [Log statement format]
// [logging priority] ~= [Fatal, Critical, Error, Warning, Notice, Information, Debug, Trace]
// [Log statement format] ~= 'n', 'd', 'm', 'p', 'l', 't'
// This setting is optional. If it is ommitted, none of the above
// metadata is prepended to the log statement.
THORLABS_TSI_LOGGER_CONSOLE Trace ndmplt
// The field separator character that is used in the log files and console loggers.
THORLABS_TSI_LOGGER_FIELD_SEPARATOR_CHARACTER ,
// The field decorator character is used to surround the text of each field of the log statement.
THORLABS_TSI_LOGGER_FIELD_DECORATOR_CHARACTER "
// The log file extension that will be used for all the generated log files.
THORLABS_TSI_LOGGER_LOG_FILE_EXTENSION log
// This setting allows the user to disable file buffering.
// If file buffering is off, the logger will persist every log statement to disk.
// This can be advantageous if the user wants to minimize data loss in the event of a catastrophic failure.
// The disadvantage is that this can affect application performance - significantly if large
// numbers of log statements are generated in a short period of time.
// If file buffering is on, then the logging system will buffer an implementation dependent number of log statements
// before writing the batch to disk.
// The recommended setting is on.
THORLABS_TSI_LOGGER_FILE_BUFFERING on
// Format for a log module:
// [Module name] [log channel options] [logging priority] [Log file size limit in MB] [Number of log files to keep] [Log statement format] [[function filter]]
// [log channel options] ~= 'c', 'a', 'm', 'g', 'u'
// c - log to the console
// a - log to the master log file
// m - log to the module log file
// g - log to the group log file(s)
// u - log to the unique (module + group) log file
// [logging priority] ~= [Fatal, Critical, Error, Warning, Notice, Information, Debug, Trace]
// [Log file size limit in MB] ~= specifies an integral limit in MB for the log file size.
// All surplus log statements will be sent to a newly created log file with a name that
// is derived from the original log file name.
// This setting is optional - if it is ommitted, then the log file is allowed to grow
// unbounded.
// [Number of log files to keep] ~= specifies the number of log files of this type to preserve.
// If the number of log files exceeds this number, the logger will delete extra log files to
// maintain this log file count. The logger will always delete the oldest log files first.
// This setting is optional - if it is omitted, then the number of log files are allowed to
// proliferate unbounded.
// [Log statement format] ~= 'n', 'd', 'm', 'p', 'l', 't'
// n - include the sequence number
// d - include the date/time stamp
// m - include the module name
// p - include the log priority
// t - include the thread ID
// l - include the source file location
// This setting is optional. If it is ommitted, none of the above
// metadata is prepended to the log statement.
// [[function filter]] ~= a comma separated list of function names. The function names
// must exactly match the implementation dependent __FUNCTION__ macro expansion.
// An empty function filter includes all functions. A non-empty list logs statements
// from only those functions.
::MODULE_1 camgu Trace ndmplt []
::MODULE_2 camgu Trace ndmplt []