-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathreference.yaml
155 lines (150 loc) · 5.83 KB
/
reference.yaml
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# SPDX-FileCopyrightText: 2023-present Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
# This file serves as a reference for configuration options supported by dazl.
# The configuration for log message encoders
encoders:
# - The configuration for the console encoder
console:
# A list of fields to include
# String fields enable the field without changing the default name or format
# To override the defaults, use an object.
# Available fields: name, level, time, caller, and stacktrace
fields:
# The log message
- message
# The logger name
- name
# The log level
- level:
# The level format: 'uppercase' or 'lowercase'
format: uppercase
# The time at which the message was logged
- timestamp:
# The time format: 'iso8601' or 'unix'
format: iso8601
# The line of code at which the message was logged
- caller:
# The caller format: 'short' or 'long'
format: short
# The log stacktrace
- stacktrace
# - 'json' is the configuration for the JSON encoder
json:
# A list of fields to include
# String fields enable the field without changing the default name or format
# To override the defaults, use an object.
# Available fields: name, level, time, caller, and stacktrace
fields:
# The log message
- message:
# The JSON key for the field
key: msg
# The logger name
- name:
# The JSON key for the field
key: logger
# The log level
- level:
# The JSON key for the field
key: level
# The level format: 'uppercase' or 'lowercase'
format: uppercase
# The time at which the message was logged
- timestamp:
# The JSON key for the field
key: time
# The time format: 'iso8601' or 'unix'
format: iso8601
# The line of code at which the message was logged
- caller:
# The JSON key for the field
key: caller
# The caller format: 'short' or 'long'
format: short
# The log stacktrace
- stacktrace:
# The JSON key for the field
key: trace
# A set of named writers for loggers to write to.
# All writers must specify an 'encoder' to use
writers:
# The stdout writer
stdout:
# The name of the encoder to use for the writer
encoder: console
# The stderr writer
stderr:
# The name of the encoder to use for the writer
encoder: console
# Remaining writers are files
file:
# The path to the file
path: ./example.log
# The name of the encoder to use for the writer
encoder: json
# 'rootLogger' is the root logger configuration
# 'outputs' is a set of references to configured writers to which to output log messages
rootLogger:
# 'level' is the default log level for all loggers
# - debug
# - info
# - warn
# - error
# - fatal
# - panic
level: debug
# 'sample' is the sampling configuration for this logger. By defaut, all messages
# are logged by the logger.
# - 'basic' configures the basic sampler
# - 'interval' configures the sampler to write every n messages to the output
# - 'maxLevel' is the maximum level at which messages will be sampled
# - 'random' configures the random sampler
# - 'interval' configures the average frequency of samples where sampling will occur at a mean
# rate of 1/interval
# - 'maxLevel' is the maximum level at which messages will be sampled
sample: random
# 'outputs' is a list of outputs to which to write the logs.
# Each item of the list is either the name of the writer to which to output the logs
# or the writer and its configuration for this particular output.
outputs:
- stdout:
# 'level' configures the minimum level to write to this output.
# Messages logged at this or any higher severity level will be written to this output.
level: info
# 'sample' is the sampling configuration for this output. By defaut, all messages
# are logged to the output.
# - 'basic' configures the basic sampler
# - 'interval' configures the sampler to write every n messages to the output
# - 'maxLevel' is the maximum level at which messages will be sampled
# - 'random' configures the random sampler
# - 'interval' configures the average frequency of samples where sampling will occur at a mean
# rate of 1/interval
# - 'maxLevel' is the maximum level at which messages will be sampled
sample:
basic:
interval: 10
maxLevel: info
- file
# 'loggers' is a mapping of logger paths to their configuration.
# Each key is the name of the logger to configured. All loggers inherit their default
# configuration from the 'rootLogger', and each logger inherits the configuration from
# all ancestors according to the path prefix.
loggers:
github.com/atomix/dazl:
# 'level' configures the minimum level to write to configured outputs.
# Messages logged at this or any higher severity level will be written to all outputs
# either configured or inherited by this logger.
level: info
# 'sample' is the sampling configuration for this output. By defaut, all messages
# are logged to the output.
# - 'basic' configures the basic sampler
# - 'interval' configures the sampler to write every n messages to the output
# - 'maxLevel' is the maximum level at which messages will be sampled
# - 'random' configures the random sampler
# - 'interval' configures the average frequency of samples where sampling will occur at a mean
# rate of 1/interval
# - 'maxLevel' is the maximum level at which messages will be sampled
sample:
basic:
interval: 10