Configure logging¶
Config options:¶
Some config options for config [core] section
- log_level
The default log level to use when no logging_conf_file is set. Must be a valid name of a Python log level. Default is
DEBUG.- logging_conf_file
Location of the logging configuration file.
- no_configure_logging
If true, logging is not configured. Defaults to false.
Config section¶
If you’re use TOML for configuration file, you can configure logging
via logging section in this file. See example
for more details.
Luigid CLI options:¶
--backgroundRun daemon in background mode. Disable logging setup and set up log level to INFO for root logger.
--logdirset logging with INFO level and output in
$logdir/luigi-server.logfile
Worker CLI options:¶
--logging-conf-fileConfiguration file for logging.
--log-levelDefault log level. Available values: NOTSET, DEBUG, INFO, WARNING, ERROR, CRITICAL. Default DEBUG. See Python documentation For information about levels difference.
Configuration options resolution order:¶
no_configure_logging option
--background--logdir--logging-conf-filelogging_conf_file option
loggingsection--log-levellog_level option