-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlog4j2.yaml
205 lines (205 loc) · 7.99 KB
/
log4j2.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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
---
Configuration:
status: info
name: mongoose
monitorInterval: 1000
packages: com.emc.mongoose.base.logging
shutdownHook: enable
shutdownTimeout: 10000
appenders:
Console:
- name: stdout
follow: true
PatternLayout:
alwaysWriteExceptions: false
pattern: "%highlight{%d{ISO8601}{GMT+0} %p{length=1} %-30.-30X{class_name} %-30.-30t %m%n}{FATAL=red bold, ERROR=red, WARN=yellow, INFO=black bright, DEBUG=black, TRACE=black}"
Filters:
ThresholdFilter:
level: INFO
onMatch: ACCEPT
onMismatch: DENY
- name: metricsStdout
follow: true
PatternLayout:
alwaysWriteExceptions: false
pattern: "%highlight{%m}{FATAL=red bold, ERROR=red, WARN=yellow, INFO=normal, DEBUG=black, TRACE=black}"
RollingRandomAccessFile:
- name: msgFile
filePattern: "${ctx:home_dir}${sys:file.separator}log${sys:file.separator}$${ctx:step_id}${sys:file.separator}messages.log"
Policies:
StepIdTriggeringPolicy: {}
DirectWriteRolloverStrategy: {}
PatternLayout:
pattern: "%d{ISO8601}{GMT+0} | %p | %X{class_name} | %t | %m%n"
- name: 3rdPartyFile
filePattern: "${ctx:home_dir}${sys:file.separator}log${sys:file.separator}$${ctx:step_id}${sys:file.separator}3rdparty.log"
Policies:
StepIdTriggeringPolicy: {}
DirectWriteRolloverStrategy: {}
PatternLayout:
pattern: "%d{ISO8601}{GMT+0} | %p | %c{1.} | %t | %m%n"
Filters:
BurstFilter:
rate: 100
maxBurst: 1000
- name: errFile
filePattern: "${ctx:home_dir}${sys:file.separator}log${sys:file.separator}$${ctx:step_id}${sys:file.separator}errors.log"
Policies:
StepIdTriggeringPolicy: {}
DirectWriteRolloverStrategy: {}
PatternLayout:
pattern: "%d{ISO8601}{GMT+0} | %p | %X{class_name} | %t | %m%n"
Filters:
BurstFilter:
rate: 100
maxBurst: 1000
- name: metricsFile
filePattern: "${ctx:home_dir}${sys:file.separator}log${sys:file.separator}$${ctx:step_id}${sys:file.separator}metrics.csv"
Policies:
StepIdTriggeringPolicy: {}
DirectWriteRolloverStrategy: {}
PatternLayout:
header: "DateTimeISO8601,OpType,Concurrency,NodeCount,ConcurrencyCurr,ConcurrencyMean,CountSucc,CountFail,Size,StepDuration[s],DurationSum[s],TPAvg[op/s],TPLast[op/s],BWAvg[MB/s],BWLast[MB/s],DurationAvg[us],DurationMin[us],DurationLoQ[us],DurationMed[us],DurationHiQ[us],DurationMax[us],LatencyAvg[us],LatencyMin[us],LatencyLoQ[us],LatencyMed[us],LatencyHiQ[us],LatencyMax[us]\n"
pattern: "%m%n"
- name: metricsThresholdFile
filePattern: "${ctx:home_dir}${sys:file.separator}log${sys:file.separator}$${ctx:step_id}${sys:file.separator}metrics.threshold.csv"
Policies:
StepIdTriggeringPolicy: {}
DirectWriteRolloverStrategy: {}
PatternLayout:
header: "DateTimeISO8601,OpType,Concurrency,NodeCount,ConcurrencyCurr,ConcurrencyMean,CountSucc,CountFail,Size,StepDuration[s],DurationSum[s],TPAvg[op/s],TPLast[op/s],BWAvg[MB/s],BWLast[MB/s],DurationAvg[us],DurationMin[us],DurationLoQ[us],DurationMed[us],DurationHiQ[us],DurationMax[us],LatencyAvg[us],LatencyMin[us],LatencyLoQ[us],LatencyMed[us],LatencyHiQ[us],LatencyMax[us]\n"
pattern: "%m%n"
- name: metricsFileTotal
filePattern: "${ctx:home_dir}${sys:file.separator}log${sys:file.separator}$${ctx:step_id}${sys:file.separator}metrics.total.csv"
Policies:
StepIdTriggeringPolicy: {}
DirectWriteRolloverStrategy: {}
PatternLayout:
#header: is removed as it's dynamically generated based on the passed quantiles
pattern: "%m%n"
- name: metricsThresholdFileTotal
filePattern: "${ctx:home_dir}${sys:file.separator}log${sys:file.separator}$${ctx:step_id}${sys:file.separator}metrics.threshold.total.csv"
Policies:
StepIdTriggeringPolicy: {}
DirectWriteRolloverStrategy: {}
PatternLayout:
header: "DateTimeISO8601,OpType,Concurrency,NodeCount,ConcurrencyCurr,ConcurrencyMean,CountSucc,CountFail,Size,StepDuration[s],DurationSum[s],TPAvg[op/s],TPLast[op/s],BWAvg[MB/s],BWLast[MB/s],DurationAvg[us],DurationMin[us],DurationLoQ[us],DurationMed[us],DurationHiQ[us],DurationMax[us],LatencyAvg[us],LatencyMin[us],LatencyLoQ[us],LatencyMed[us],LatencyHiQ[us],LatencyMax[us]\n"
pattern: "%m%n"
- name: opTraceFile
filePattern: "${ctx:home_dir}${sys:file.separator}log${sys:file.separator}$${ctx:step_id}${sys:file.separator}op.trace.csv"
Policies:
StepIdTriggeringPolicy: {}
DirectWriteRolloverStrategy: {}
PatternLayout:
pattern: "%m"
- name: cliFile
append: "false"
filePattern: "${ctx:home_dir}${sys:file.separator}log${sys:file.separator}$${ctx:step_id}${sys:file.separator}cli.args.log"
Policies:
StepIdTriggeringPolicy: {}
DirectWriteRolloverStrategy: {}
- name: cfgFile
append: "false"
filePattern: "${ctx:home_dir}${sys:file.separator}log${sys:file.separator}$${ctx:step_id}${sys:file.separator}config.yaml"
Policies:
StepIdTriggeringPolicy: {}
DirectWriteRolloverStrategy: {}
- name: scenarioFile
append: "false"
filePattern: "${ctx:home_dir}${sys:file.separator}log${sys:file.separator}$${ctx:step_id}${sys:file.separator}scenario.txt"
Policies:
StepIdTriggeringPolicy: {}
DirectWriteRolloverStrategy: {}
- name: partsUploadFile
filePattern: "${ctx:home_dir}${sys:file.separator}log${sys:file.separator}$${ctx:step_id}${sys:file.separator}parts.upload.csv"
Policies:
StepIdTriggeringPolicy: {}
DirectWriteRolloverStrategy: {}
PatternLayout:
header: "ItemPath,UploadId,RespLatency[us]%n"
pattern: "%m%n"
Loggers:
root:
Level: INFO
AppenderRef:
ref: 3rdPartyFile
additivity: false
logger:
- name: io.netty.util.concurrent.DefaultPromise.rejectedExecution
level: FATAL
AppenderRef:
ref: 3rdPartyFile
additivity: false
- name: io.netty.channel.AbstractChannel
level: ERROR
AppenderRef:
ref: 3rdPartyFile
additivity: false
- name: com.emc.mongoose.base.logging.Cli
level: INFO
AppenderRef:
ref: cliFile
additivity: false
- name: com.emc.mongoose.base.logging.Config
level: INFO
AppenderRef:
ref: cfgFile
additivity: false
- name: com.emc.mongoose.base.logging.Errors
level: DEBUG
AppenderRef:
- ref: stdout
- ref: errFile
additivity: false
- name: com.emc.mongoose.base.logging.OpTraces
level: INFO
AppenderRef:
ref: opTraceFile
additivity: false
- name: com.emc.mongoose.base.logging.metrics.File
level: INFO
AppenderRef:
ref: metricsFile
additivity: false
- name: com.emc.mongoose.base.logging.metrics.FileTotal
level: INFO
AppenderRef:
ref: metricsFileTotal
additivity: false
- name: com.emc.mongoose.base.logging.metrics.StdOut
level: INFO
AppenderRef:
ref: metricsStdout
additivity: false
- name: com.emc.mongoose.base.logging.metrics.threshold.File
level: INFO
AppenderRef:
ref: metricsThresholdFile
additivity: false
- name: com.emc.mongoose.base.logging.metrics.threshold.FileTotal
level: INFO
AppenderRef:
ref: metricsThresholdFileTotal
additivity: false
- name: com.emc.mongoose.base.logging.Messages
level: DEBUG
AppenderRef:
- ref: stdout
- ref: msgFile
additivity: false
- name: com.emc.mongoose.base.logging.Multipart
level: DEBUG
AppenderRef:
ref: partsUploadFile
additivity: false
- name: com.emc.mongoose.base.logging.Scenario
level: INFO
AppenderRef:
ref: scenarioFile
additivity: false
- name: com.github.akurilov
level: WARN
AppenderRef:
- ref: stdout
- ref: msgFile
additivity: false