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

Commit

Permalink
Add a link to python's logging config schema (#5926)
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed Feb 24, 2020
2 parents 3d5f1eb + 92c1550 commit 88c5b43
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
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 @@ -560,7 +560,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

0 comments on commit 88c5b43

Please sign in to comment.