Answer is B
In the given code, the logging level is set to the default level, which is WARNING. The logger.info('Debuning mode has been enabled') statement will not be displayed because it is an info message, and info messages are below the default logging level.
However, the logger.debug('Loading data...') statement will be displayed because it is a debug message, and debug messages are below the default logging level.
Answer is A.
The default logging level is Warning. Info and Debug level is lower than Warning, therefore, no message for Info and Debug.
If you try code, nothing shows up.
Level name Value
CRITICAL 50
ERROR 40
WARNING (Default) 30
INFO 20
DEBUG 10
NOTSET 0
https://edube.org/learn/pcpp1-5/logging-in-python-2
upvoted 3 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
FRAUSTOFR1
9 months, 2 weeks agoMoneybing
1 year, 2 months ago