Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What function is used to configure logging?
Think about the core setup function in the logging module.
Which log level should be used for critical errors?
Which level indicates severe loss of functionality?
What log level should be used for general information?
Consider what level confirms successful actions.
True or False: DEBUG is used for critical errors.
Think about the severity each level indicates.
Create a logging configuration for a hypothetical application. It should log warnings and higher severity to a file named 'app.log', and info messages to the console.
Remember you can add multiple handlers in logging.
What should you do if sensitive information must be logged? Propose a solution.
Think about how data can be protected while still being useful.
4 more questions in this section. Enroll free to practise them all.
Enroll free