mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 14:50:19 +00:00
Change logging_config extension to ini
This commit is contained in:
@@ -137,7 +137,7 @@ Then use :meth:`logging.config.fileConfig` in the code:
|
||||
import logging
|
||||
from logging.config import fileConfig
|
||||
|
||||
fileConfig('logging_config.txt')
|
||||
fileConfig('logging_config.ini')
|
||||
logger = logging.getLogger()
|
||||
logger.debug('often makes a very good meal of %s', 'visiting tourists')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user