-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathexample.toml
56 lines (47 loc) · 1.69 KB
/
example.toml
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
[loggers.default]
type = "Logging.SimpleLogger"
# min_level = "Debug" # Debug, Info (default) or Error
stream = "/tmp/default.log" # stdout (default), stderr or a filepath
[loggers.file]
type = "LogRoller.RollingLogger"
# sizelimit = 10240000
# nfiles = 5
# min_level = "Debug" # Debug, Info (default) or Error
# timestamp_identifier = "time"
[loggers.syslog]
type = "SyslogLogging.SyslogLogger"
# min_level = "Info" # default is Info
# facility = "user" # one of the facility types listed in Syslogs.jl (default is user)
# server_type = "tcp" # tcp or udp or local (default)
# server_host =
# server_port =
# lock = false # whether to lock the syslog facility while logging
[loggers.stackdriver]
type = "StackDriver.StackdriverLogger"
min_level = "Info" # default is Info
project_name = "myapp"
log_name = "myapp.log"
key_file_path = "keyfile"
access_token = "accesstoken"
[loggers.file.testapp]
filename = "/tmp/testapp.log"
[loggers.syslog.testapp]
identity = "testapp"
[loggers.stackdriver.testapp]
log_name = "testapp"
[loggers.testapp]
type = "LoggingExtras.TeeLogger"
destinations = ["file.testapp", "syslog.testapp"]
[loggers.testapptee]
type = "LogRoller.RollingFileWriterTee"
destination = "file.testapp"
filename = "/tmp/testapptee.log"
# sizelimit = 10240000
# nfiles = 5
# assumed_level = "Debug" # Debug, Info (default) or Error
[loggers.plainfile]
type = "LogRoller.RollingFileWriter"
filename = "/tmp/testplain.log"
# sizelimit = 10240000
# nfiles = 5
# assumed_level = "Debug" # Debug, Info (default) or Error