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