mirror of https://github.com/scrapy/scrapy.git
Merge pull request #1 from w495/w495-patch-1
LOG_DICT_CONFIG for custom logging
This commit is contained in:
commit
f61e707d31
|
|
@ -87,7 +87,8 @@ def configure_logging(settings=None, install_root_handler=True):
|
|||
observer = twisted_log.PythonLoggingObserver('twisted')
|
||||
observer.start()
|
||||
|
||||
dictConfig(DEFAULT_LOGGING)
|
||||
dictConfig(settings.get('LOG_DICT_CONFIG', DEFAULT_LOGGING))
|
||||
|
||||
|
||||
if isinstance(settings, dict) or settings is None:
|
||||
settings = Settings(settings)
|
||||
|
|
|
|||
Loading…
Reference in New Issue