##// END OF EJS Templates
docs; fixed docstring
docs; fixed docstring

File last commit:

r1021:a797b226 default
r1169:14edc919 default
Show More
logging.ini
53 lines | 1.1 KiB | text/x-ini | IniLexer
core: re-implemented the way how configuration can be made...
r1021 ; #####################
; LOGGING CONFIGURATION
; #####################
; Logging template, used for configure the logging
; some variables here are replaced by RhodeCode to default values
[loggers]
keys = root, vcsserver
[handlers]
keys = console
[formatters]
keys = generic, json
; #######
; LOGGERS
; #######
[logger_root]
level = NOTSET
handlers = console
[logger_vcsserver]
level = $RC_LOGGING_LEVEL
handlers =
qualname = vcsserver
propagate = 1
; ########
; HANDLERS
; ########
[handler_console]
class = StreamHandler
args = (sys.stderr, )
level = $RC_LOGGING_LEVEL
; To enable JSON formatted logs replace generic with json
; This allows sending properly formatted logs to grafana loki or elasticsearch
#formatter = json
#formatter = generic
formatter = $RC_LOGGING_FORMATTER
; ##########
; FORMATTERS
; ##########
[formatter_generic]
format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s
datefmt = %Y-%m-%d %H:%M:%S
[formatter_json]
format = %(timestamp)s %(levelname)s %(name)s %(message)s %(req_id)s
class = vcsserver.lib._vendor.jsonlogger.JsonFormatter