Skip to content

Instantly share code, notes, and snippets.

@erikjohnston
Created February 10, 2015 15:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erikjohnston/694ff94ba8090992c495 to your computer and use it in GitHub Desktop.
Save erikjohnston/694ff94ba8090992c495 to your computer and use it in GitHub Desktop.
Example synapse log config
version: 1
formatters:
precise:
format: '%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(request)s - %(message)s'
filters:
context:
(): synapse.util.logcontext.LoggingContextFilter
request: ""
handlers:
file:
class: logging.handlers.RotatingFileHandler
formatter: precise
filename: /home/erikj/synapse/stuff/jki.log
maxBytes: 104857600
backupCount: 10
filters: [context]
level: DEBUG
loggers:
synapse:
level: DEBUG
handlers: [file]
synapse.storage.SQL:
level: INFO
handlers: [file]
root:
level: INFO
handlers: [file]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment