-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtemplate.config.ini
More file actions
56 lines (38 loc) · 1.38 KB
/
template.config.ini
File metadata and controls
56 lines (38 loc) · 1.38 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
52
53
54
55
# All the configs below can be blank, the default values defined in t_log4sh.sh will be used
# Comma-separated list of channels
# Valid values: stdout,stderr,file,cmd,syslog
# channels=stderr,file
#----- file channel -----
# channel.file.path=./output.log
#----- cmd channel -----
# Channel "cmd" shall put the log message into stdin of the command
# channel.cmd.cmdline=xargs -0 echo >>>
# channel.cmd.cmdline=curl -X POST --data-binary @- http://127.0.0.1:8080
#----- syslog channel -----
# channel.syslog.facility=local0
# channel.syslog.tag=myapp
# channel.syslog.server_host=172.17.0.2
# channel.syslog.server_port=514
#----- log level (severity) -----
# Valid values can be string or integer: TRACE=1, DEBUG=2, INFO=3, WARN=4, ERROR=5, FATAL=6
# Default threshold.min_level=0 and threshold.max_level=7
# threshold.min_level=3
# threshold.max_level=4
# threshold.max_level=WARN
#----- message item -----
# Message item format
# Placeholders:
# %d: date
# %l: level
# %f: file name
# %L: line number in the file
# %F: function name
# %m: message
# msg_item.format=[ %d ][ %l ] %F() in %f (line %L): %m
# Format string input to the "date" command
# msg_item.date.format=%Y-%m-%d %H:%M:%S.%3N
# Time zone input to the "date" command
# msg_item.date.time_zone=UTC-7
#----- trace dump -----
# If true, the trace dump will be resolved to the absolute path
# trace_dump.abs_path=true