This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Consider kedro run -v
verbose mode
#3591
Labels
Issue: Feature Request
New feature or improvement to existing feature
Milestone
Description
The current logging configuration is too granular. We should use
root
logger only. The exception would beinfo_logger
orerror_logger
because they are mean to capture that specific log level.The most common case is that I want to see all the logs during debugging. In production case (packaged project), how do I even change it to see the log if I want to? Editing the configuration file doesn't seem to be a good idea.
Inspired by
pytest -v
pytest -vv
Proposal:
kedro run -v
verbose mode - The Project logging level will be set toDEBUG
because this should be the most common case, I want to see the log message that I wrote in the projectkedro run -vv
more verbose mode - Everything should be shown now, including any plugin logging orkedro
logsContext
It's hard to get logging right, in most case I either expect seeing just the default level or I want to see everything during debugging. a
-v
flag comes in handy and is a common convention among many CLI tools. i.e.pytest
.Possible Implementation
Add new argument in the CLI, and override the level of logging in
LOGGING
.Possible Alternatives
Edited 2024-03-07
I have splited this ticket to two tickets
default_logging.yml
andlogging.yml
to have more sensible default #3687The text was updated successfully, but these errors were encountered: