Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Add a link to python's logging config schema #5926

Merged
merged 2 commits into from
Aug 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/5926.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add link in sample config to the logging config schema.
3 changes: 2 additions & 1 deletion docs/sample_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,8 @@ database:

## Logging ##

# A yaml python logging config file
# A yaml python logging config file as described by
# https://docs.python.org/3.7/library/logging.config.html#configuration-dictionary-schema
#
log_config: "CONFDIR/SERVERNAME.log.config"

Expand Down
3 changes: 2 additions & 1 deletion synapse/config/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ def generate_config_section(self, config_dir_path, server_name, **kwargs):
"""\
## Logging ##

# A yaml python logging config file
# A yaml python logging config file as described by
# https://docs.python.org/3.7/library/logging.config.html#configuration-dictionary-schema
#
log_config: "%(log_config)s"
"""
Expand Down