Browse Source

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

tags/v1.4.0rc1
Jorik Schellekens 4 years ago
committed by Richard van der Hoff
parent
commit
92c1550f4a
3 changed files with 5 additions and 2 deletions
  1. +1
    -0
      changelog.d/5926.misc
  2. +2
    -1
      docs/sample_config.yaml
  3. +2
    -1
      synapse/config/logger.py

+ 1
- 0
changelog.d/5926.misc View File

@@ -0,0 +1 @@
Add link in sample config to the logging config schema.

+ 2
- 1
docs/sample_config.yaml View File

@@ -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"



+ 2
- 1
synapse/config/logger.py View File

@@ -89,7 +89,8 @@ class LoggingConfig(Config):
"""\
## 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"
"""


Loading…
Cancel
Save