Improved logging configuration (#342)

This commit is contained in:
David Zhao
2022-01-15 10:28:03 -08:00
committed by GitHub
parent d45435ed3d
commit c122c98e4d
11 changed files with 139 additions and 78 deletions
+13 -3
View File
@@ -2,9 +2,6 @@
# for production setups, this port should be placed behind a load balancer with TLS
port: 7880
# log level, valid values: debug, info, warning, error
log_level: info
# when redis is set, LiveKit will automatically operate in a fully distributed fashion
# clients could connect to any node and be routed to the same room
redis:
@@ -67,6 +64,19 @@ keys:
key1: secret1
key2: secret2
# Logging config
# logging:
# # log level, valid values: debug, info, warning, error
# level: info
# # log level for pion, default error
# pion_level: error
# # when set to true, emit json fields
# json: false
# # for production setups, enables sampling algorithm
# # https://github.com/uber-go/zap/blob/master/FAQ.md#why-sample-application-logs
# sample: false
# Default room config
# Each room created will inherit these settings. If rooms are created explicitly with CreateRoom, they will take
# precedence over defaults