Configuring LoggingΒΆ

Rattail relies on Python standard logging module to configure logging. However if Config File Inheritance is involved then Rattail will first combine all applicable config files into a single file before handing that off to logging.config.fileConfig().

Rattail does not do any of this though, unless config says to. So if you want it to configure logging in this way, specify this in your config file:

[rattail.config]
configure_logging = true

Beyond that you must ensure your config file(s) contains appropriate settings for logging. Rattail has a sample rattail.conf which includes a typical logging section. (This is the source used to generate a new file when you run rattail make-config -T rattail command.)

See the Python docs for more info, in particular these sections: