Show More
@@ -228,49 +228,49 b' core.binary_dir = ""' | |||||
228 | ; LOGGING CONFIGURATION |
|
228 | ; LOGGING CONFIGURATION | |
229 | ; ##################### |
|
229 | ; ##################### | |
230 |
|
230 | |||
231 |
|
|
231 | [loggers] | |
232 |
|
|
232 | keys = root, vcsserver | |
233 |
|
233 | |||
234 |
|
|
234 | [handlers] | |
235 |
|
|
235 | keys = console | |
236 |
|
236 | |||
237 |
|
|
237 | [formatters] | |
238 |
|
|
238 | keys = generic, json | |
239 |
|
239 | |||
240 | ; ####### |
|
240 | ; ####### | |
241 | ; LOGGERS |
|
241 | ; LOGGERS | |
242 | ; ####### |
|
242 | ; ####### | |
243 |
|
|
243 | [logger_root] | |
244 |
|
|
244 | level = NOTSET | |
245 |
|
|
245 | handlers = console | |
246 |
|
246 | |||
247 |
|
|
247 | [logger_vcsserver] | |
248 |
|
|
248 | level = DEBUG | |
249 |
|
|
249 | handlers = | |
250 |
|
|
250 | qualname = vcsserver | |
251 |
|
|
251 | propagate = 1 | |
252 |
|
252 | |||
253 | ; ######## |
|
253 | ; ######## | |
254 | ; HANDLERS |
|
254 | ; HANDLERS | |
255 | ; ######## |
|
255 | ; ######## | |
256 |
|
256 | |||
257 |
|
|
257 | [handler_console] | |
258 |
|
|
258 | class = StreamHandler | |
259 |
|
|
259 | args = (sys.stderr, ) | |
260 |
|
|
260 | level = DEBUG | |
|
261 | formatter = generic | |||
261 | ; To enable JSON formatted logs replace generic with json |
|
262 | ; To enable JSON formatted logs replace generic with json | |
262 | ; This allows sending properly formatted logs to grafana loki or elasticsearch |
|
263 | ; This allows sending properly formatted logs to grafana loki or elasticsearch | |
263 | #formatter = json |
|
264 | #formatter = json | |
264 | #formatter = generic |
|
|||
265 |
|
265 | |||
266 | ; ########## |
|
266 | ; ########## | |
267 | ; FORMATTERS |
|
267 | ; FORMATTERS | |
268 | ; ########## |
|
268 | ; ########## | |
269 |
|
269 | |||
270 |
|
|
270 | [formatter_generic] | |
271 |
|
|
271 | format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s | |
272 |
|
|
272 | datefmt = %Y-%m-%d %H:%M:%S | |
273 |
|
273 | |||
274 |
|
|
274 | [formatter_json] | |
275 |
|
|
275 | format = %(timestamp)s %(levelname)s %(name)s %(message)s %(req_id)s | |
276 |
|
|
276 | class = vcsserver.lib._vendor.jsonlogger.JsonFormatter |
@@ -29,6 +29,8 b" accesslog = '-'" | |||||
29 | worker_tmp_dir = None |
|
29 | worker_tmp_dir = None | |
30 | tmp_upload_dir = None |
|
30 | tmp_upload_dir = None | |
31 |
|
31 | |||
|
32 | #reuse_port = True | |||
|
33 | ||||
32 | # Custom log format |
|
34 | # Custom log format | |
33 | #access_log_format = ( |
|
35 | #access_log_format = ( | |
34 | # '%(t)s %(p)s INFO [GNCRN] %(h)-15s rqt:%(L)s %(s)s %(b)-6s "%(m)s:%(U)s %(q)s" usr:%(u)s "%(f)s" "%(a)s"') |
|
36 | # '%(t)s %(p)s INFO [GNCRN] %(h)-15s rqt:%(L)s %(s)s %(b)-6s "%(m)s:%(U)s %(q)s" usr:%(u)s "%(f)s" "%(a)s"') |
@@ -191,49 +191,49 b' core.binary_dir = ""' | |||||
191 | ; LOGGING CONFIGURATION |
|
191 | ; LOGGING CONFIGURATION | |
192 | ; ##################### |
|
192 | ; ##################### | |
193 |
|
193 | |||
194 |
|
|
194 | [loggers] | |
195 |
|
|
195 | keys = root, vcsserver | |
196 |
|
196 | |||
197 |
|
|
197 | [handlers] | |
198 |
|
|
198 | keys = console | |
199 |
|
199 | |||
200 |
|
|
200 | [formatters] | |
201 |
|
|
201 | keys = generic, json | |
202 |
|
202 | |||
203 | ; ####### |
|
203 | ; ####### | |
204 | ; LOGGERS |
|
204 | ; LOGGERS | |
205 | ; ####### |
|
205 | ; ####### | |
206 |
|
|
206 | [logger_root] | |
207 |
|
|
207 | level = NOTSET | |
208 |
|
|
208 | handlers = console | |
209 |
|
209 | |||
210 |
|
|
210 | [logger_vcsserver] | |
211 |
|
|
211 | level = INFO | |
212 |
|
|
212 | handlers = | |
213 |
|
|
213 | qualname = vcsserver | |
214 |
|
|
214 | propagate = 1 | |
215 |
|
215 | |||
216 | ; ######## |
|
216 | ; ######## | |
217 | ; HANDLERS |
|
217 | ; HANDLERS | |
218 | ; ######## |
|
218 | ; ######## | |
219 |
|
219 | |||
220 |
|
|
220 | [handler_console] | |
221 |
|
|
221 | class = StreamHandler | |
222 |
|
|
222 | args = (sys.stderr, ) | |
223 |
|
|
223 | level = INFO | |
|
224 | formatter = generic | |||
224 | ; To enable JSON formatted logs replace generic with json |
|
225 | ; To enable JSON formatted logs replace generic with json | |
225 | ; This allows sending properly formatted logs to grafana loki or elasticsearch |
|
226 | ; This allows sending properly formatted logs to grafana loki or elasticsearch | |
226 | #formatter = json |
|
227 | #formatter = json | |
227 | #formatter = generic |
|
|||
228 |
|
228 | |||
229 | ; ########## |
|
229 | ; ########## | |
230 | ; FORMATTERS |
|
230 | ; FORMATTERS | |
231 | ; ########## |
|
231 | ; ########## | |
232 |
|
232 | |||
233 |
|
|
233 | [formatter_generic] | |
234 |
|
|
234 | format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s | |
235 |
|
|
235 | datefmt = %Y-%m-%d %H:%M:%S | |
236 |
|
236 | |||
237 |
|
|
237 | [formatter_json] | |
238 |
|
|
238 | format = %(timestamp)s %(levelname)s %(name)s %(message)s %(req_id)s | |
239 |
|
|
239 | class = vcsserver.lib._vendor.jsonlogger.JsonFormatter |
General Comments 0
You need to be logged in to leave comments.
Login now