##// END OF EJS Templates
config: updated configs to still not comment out logging configuration....
super-admin -
r1024:8705056f default
parent child Browse files
Show More
@@ -228,49 +228,49 b' core.binary_dir = ""'
228 ; LOGGING CONFIGURATION
228 ; LOGGING CONFIGURATION
229 ; #####################
229 ; #####################
230
230
231 #[loggers]
231 [loggers]
232 #keys = root, vcsserver
232 keys = root, vcsserver
233
233
234 #[handlers]
234 [handlers]
235 #keys = console
235 keys = console
236
236
237 #[formatters]
237 [formatters]
238 #keys = generic
238 keys = generic, json
239
239
240 ; #######
240 ; #######
241 ; LOGGERS
241 ; LOGGERS
242 ; #######
242 ; #######
243 #[logger_root]
243 [logger_root]
244 #level = NOTSET
244 level = NOTSET
245 #handlers = console
245 handlers = console
246
246
247 #[logger_vcsserver]
247 [logger_vcsserver]
248 #level = INFO
248 level = DEBUG
249 #handlers =
249 handlers =
250 #qualname = vcsserver
250 qualname = vcsserver
251 #propagate = 1
251 propagate = 1
252
252
253 ; ########
253 ; ########
254 ; HANDLERS
254 ; HANDLERS
255 ; ########
255 ; ########
256
256
257 #[handler_console]
257 [handler_console]
258 #class = StreamHandler
258 class = StreamHandler
259 #args = (sys.stderr, )
259 args = (sys.stderr, )
260 #level = INFO
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 #[formatter_generic]
270 [formatter_generic]
271 #format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s
271 format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s
272 #datefmt = %Y-%m-%d %H:%M:%S
272 datefmt = %Y-%m-%d %H:%M:%S
273
273
274 #[formatter_json]
274 [formatter_json]
275 #format = %(timestamp)s %(levelname)s %(name)s %(message)s %(req_id)s
275 format = %(timestamp)s %(levelname)s %(name)s %(message)s %(req_id)s
276 #class = vcsserver.lib._vendor.jsonlogger.JsonFormatter
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 #[loggers]
194 [loggers]
195 #keys = root, vcsserver
195 keys = root, vcsserver
196
196
197 #[handlers]
197 [handlers]
198 #keys = console
198 keys = console
199
199
200 #[formatters]
200 [formatters]
201 #keys = generic
201 keys = generic, json
202
202
203 ; #######
203 ; #######
204 ; LOGGERS
204 ; LOGGERS
205 ; #######
205 ; #######
206 #[logger_root]
206 [logger_root]
207 #level = NOTSET
207 level = NOTSET
208 #handlers = console
208 handlers = console
209
209
210 #[logger_vcsserver]
210 [logger_vcsserver]
211 #level = INFO
211 level = INFO
212 #handlers =
212 handlers =
213 #qualname = vcsserver
213 qualname = vcsserver
214 #propagate = 1
214 propagate = 1
215
215
216 ; ########
216 ; ########
217 ; HANDLERS
217 ; HANDLERS
218 ; ########
218 ; ########
219
219
220 #[handler_console]
220 [handler_console]
221 #class = StreamHandler
221 class = StreamHandler
222 #args = (sys.stderr, )
222 args = (sys.stderr, )
223 #level = INFO
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 #[formatter_generic]
233 [formatter_generic]
234 #format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s
234 format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s
235 #datefmt = %Y-%m-%d %H:%M:%S
235 datefmt = %Y-%m-%d %H:%M:%S
236
236
237 #[formatter_json]
237 [formatter_json]
238 #format = %(timestamp)s %(levelname)s %(name)s %(message)s %(req_id)s
238 format = %(timestamp)s %(levelname)s %(name)s %(message)s %(req_id)s
239 #class = vcsserver.lib._vendor.jsonlogger.JsonFormatter
239 class = vcsserver.lib._vendor.jsonlogger.JsonFormatter
General Comments 0
You need to be logged in to leave comments. Login now