A
ASh
Hi,
I have this source:
import logging
import logging.config
logging.config.fileConfig("logging.properties")
log = logging.getLogger("qname")
log.debug("message")
------------------- OUTPUT
DEBUG logger_test:8: message
DEBUG logger_test:8: message
------- FILE CONFIG
[formatters]
keys: detailed
[handlers]
keys: console
[loggers]
keys: root, engine
[formatter_detailed]
format: %(levelname)s %(module)s:%(lineno)d: %(message)s
[handler_console]
class: StreamHandler
args: []
formatter: detailed
[logger_root]
level: ERROR
handlers: console
[logger_engine]
level: DEBUG
qualname: qname
handlers: console
I have this source:
import logging
import logging.config
logging.config.fileConfig("logging.properties")
log = logging.getLogger("qname")
log.debug("message")
------------------- OUTPUT
DEBUG logger_test:8: message
DEBUG logger_test:8: message
------- FILE CONFIG
[formatters]
keys: detailed
[handlers]
keys: console
[loggers]
keys: root, engine
[formatter_detailed]
format: %(levelname)s %(module)s:%(lineno)d: %(message)s
[handler_console]
class: StreamHandler
args: []
formatter: detailed
[logger_root]
level: ERROR
handlers: console
[logger_engine]
level: DEBUG
qualname: qname
handlers: console