-
Notifications
You must be signed in to change notification settings - Fork 160
Logging Configuration
Ellis Percival edited this page Jan 21, 2021
·
2 revisions
The logging
section of the config is passed directly to the Python logging
module's dictConfig()
function which is documented here: https://docs.python.org/3/library/logging.config.html#logging-config-dictschema
If left unset, the default config is set as follows. If you wish to change this, copy and paste this section into your config.yml
and change whichever parts you'd like.
logging:
version: 1
formatters:
simple:
format: "%(asctime)s %(name)s (%(levelname)s): %(message)s"
handlers:
console:
class: logging.StreamHandler
level: DEBUG
formatter: simple
stream: ext://sys.stdout
loggers:
mqtt_gpio:
level: INFO
handlers: [console]
propagate: yes