Use yaml logging config format because it is much nicer

pull/63/head
Erik Johnston 2015-02-10 13:50:33 +00:00
parent b90d377af4
commit 30595b466f
1 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ from synapse.util.logcontext import LoggingContextFilter
from twisted.python.log import PythonLoggingObserver
import logging
import logging.config
import yaml
class LoggingConfig(Config):
@ -79,7 +80,7 @@ class LoggingConfig(Config):
logger.addHandler(handler)
logger.info("Test")
else:
logging.config.fileConfig(self.log_config)
logging.config.dictConfig(yaml.load(self.log_config))
observer = PythonLoggingObserver()
observer.start()