Skip to content

why is the logging level set to info for root logger? #263

Closed Answered by coddingtonbear
modernNeo asked this question in Q&A
Discussion options

You must be logged in to vote

That's done so logging messages will be emitted to the console; since that's a command-line entrypoint, some amount of user feedback is desirable. The call tobasicConfig is doing more than just setting the logging level for the root logger -- it's also wiring things up so they'll be printed to the console. Using logging.info here will allow all INFO-level and higher logging messages to make it to the console, regardless of what module they're emitted from.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
6 replies
@coddingtonbear
Comment options

@modernNeo
Comment options

@coddingtonbear
Comment options

@modernNeo
Comment options

@modernNeo
Comment options

Answer selected by modernNeo
Comment options

You must be logged in to vote
1 reply
@modernNeo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #262 on January 07, 2023 08:11.