configs: added changed require to track logging with loki or logstash
This commit is contained in:
parent
8a95bb9eb4
commit
062734947d
3 changed files with 24 additions and 0 deletions
|
|
@ -715,6 +715,7 @@ appenlight.log_namespace_blacklist =
|
|||
#statsd.statsd_prefix =
|
||||
#statsd.statsd_ipv6 = false
|
||||
|
||||
|
||||
; Dummy marker to add new entries after.
|
||||
; Add any custom entries below. Please don't remove this marker.
|
||||
custom.conf = 1
|
||||
|
|
@ -778,6 +779,9 @@ class = StreamHandler
|
|||
args = (sys.stderr, )
|
||||
level = INFO
|
||||
formatter = generic
|
||||
; To enable JSON formatted logs replace generic with json
|
||||
; This allows sending properly formatted logs to grafana loki or elasticsearch
|
||||
#formatter = json
|
||||
|
||||
[handler_console_sql]
|
||||
; "level = DEBUG" logs SQL queries and results.
|
||||
|
|
@ -806,3 +810,7 @@ datefmt = %Y-%m-%d %H:%M:%S
|
|||
class = rhodecode.lib.logging_formatter.ColorFormatterSql
|
||||
format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s
|
||||
datefmt = %Y-%m-%d %H:%M:%S
|
||||
|
||||
[formatter_json]
|
||||
format = %(message)s
|
||||
class = rhodecode.lib._vendor.jsonlogger.JsonFormatter
|
||||
Loading…
Add table
Add a link
Reference in a new issue