Make LiveKit Server logging config configurable

This commit is contained in:
Slavi Pantaleev 2024-11-21 18:13:07 +02:00
parent 8b84eb6390
commit be7271760e
2 changed files with 22 additions and 0 deletions

View File

@ -160,3 +160,19 @@ livekit_server_config_rtc_use_external_ip: true
livekit_server_config_keys: "{{ livekit_server_config_keys_auto | combine(livekit_server_config_keys_custom, recursive=True) }}"
livekit_server_config_keys_auto: {}
livekit_server_config_keys_custom: {}
# Controls the `logging.level` configuration property.
# Known values: debug, info, warn, error
livekit_server_config_logging_level: info
# Controls the `logging.pion_level` configuration property
livekit_server_config_logging_pion_level: error
# Controls the `logging.json` configuration property.
# When set to true, emits json fields.
livekit_server_config_logging_json: false
# Controls the `logging.sample` configuration property.
# For production setups, enables sampling algorithm.
# See: https://github.com/uber-go/zap/blob/master/FAQ.md#why-sample-application-logs
livekit_server_config_logging_sample: false

View File

@ -19,3 +19,9 @@ turn:
external_tls: true
keys: {{ livekit_server_config_keys | to_json }}
logging:
level: {{ livekit_server_config_logging_level | to_json }}
pion_level: {{ livekit_server_config_logging_pion_level | to_json }}
json: {{ livekit_server_config_logging_json | to_json }}
sample: {{ livekit_server_config_logging_sample | to_json }}