-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArithmeticLog.lfg
More file actions
51 lines (42 loc) · 1.86 KB
/
ArithmeticLog.lfg
File metadata and controls
51 lines (42 loc) · 1.86 KB
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
[logger.Arithmetic]
loglevel = debug
sink=FileSink
sink= ConsoleSink
sink = RotatingSi
asyncmode=false
[SINK.FileSink]
# there are 5 sink types: Stdout, Stderr, String, File, RotatingFile.
# they may contain different parameters.
# for example FileName parameter is valid for File, RotatingFile only.
Type=File
FileName = ArithmeticLog.log
loglevel = trace
#InfoPattern =GGG %TIME% #%THREAD% : %MSG%
PatternAll =!ALL! %TIME% #%THREAD% : %MSG%
[Sink.ConsoleSink]
# this sink sends all log messages to standard output
Type=Stdout
LOGLEVEL=trace
PatternAll =%MSG%
[sink.RotatingSi]
Type=RotatingFile
FileName = ArithmeticLogRot.log
# Rotating strategy. can be one of the following values
# None - no rotating. logs are written into specified log file without any rotating. In that case RotatingFile is fully equal to FileSink
# Single - only one .bak file is created when log file reaches MaxLogfileSize. Old .bak file is deleted.
# TimeStamp - .bak files are created with TimeStamp in the name. Unlimited number of such files can be created.
# Numbers - when log file reaches MaxLogfileSize, log file is renamed to <logfilename>.1.bak, existing <logfilename>.1.bak is renamed to <logfilename>.2.bak and so on.
# maximum number of numerated .bak files is MaxBackupIndex. Extra files are deleted.
Strategy = Numbers
# Maximum log file size when new file will be started.
# Value can contain suffixes K, M, G that means kilobytes, megabytes and gigabytes
MaxLogfileSize = 500K
# Maximum number of "backup" files. Older files will be deleted
MaxBackupIndex = 5
ErrorPattern = ! %TIME% #%THREAD% : %MSG%
WarnPattern = # %TIME% #%THREAD% : %MSG%
CritPattern = *!* %TIME% #%THREAD% : %MSG%
#InfoPattern = III %TIME% #%THREAD% : %MSG%
# this is pattern for all log message levels
# use it when you do not need separate pattern for each log level.
PatternAll = !WOW! %TIME% #%THREAD% : %MSG%