-
Notifications
You must be signed in to change notification settings - Fork 38
Configuring logging
Cardinal provides lots of logging using Python's built-in logging module. If no logging configuration is provided, a very simple default showing the time, logger name, log level, and log message will appear on the console on stderr
. By default, DEBUG
level logs are hidden.
You can find an example for configuring the logging
package in config.json.example
. The settings defined in the example file offer a couple useful enhancements. Firstly, the console output on stderr will begin showing DEBUG
level logs. Secondly, a copy of INFO
logs and higher will be written to storage/logs/cardinal.log
. It is recommended that you copy the example provided into your own config.json
and customize it to suit your needs.
For a detailed list of all options that can be set, you should read through the Python documentation.