##// END OF EJS Templates
Added tag v5.3.1 for changeset 14c68b1b77eb
Added tag v5.3.1 for changeset 14c68b1b77eb

File last commit:

r1021:a797b226 default
r1307:beb57121 stable
Show More
logging.ini
53 lines | 1.1 KiB | text/x-ini | IniLexer
; #####################
; 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