mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +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
|
import logging
|
||||||
from logging.config import fileConfig
|
from logging.config import fileConfig
|
||||||
|
|
||||||
fileConfig('logging_config.txt')
|
fileConfig('logging_config.ini')
|
||||||
logger = logging.getLogger()
|
logger = logging.getLogger()
|
||||||
logger.debug('often makes a very good meal of %s', 'visiting tourists')
|
logger.debug('often makes a very good meal of %s', 'visiting tourists')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user