Practice ยท 1 of 2
Emit and Verify
Configure a logger named 'app.checkpoint' with a StreamHandler writing to a StringIO and a formatter '%(levelname)s:%(name)s:%(message)s' (assign it to LOG_OUTPUT so the grader can read it). Then implement warn_twice(msg) that emits msg twice at WARNING level using lazy %-formatting.
Difficulty: intermediate
Press Submit to check your solution.
Back to lesson: Practice: Logging Drills