Track 15 · Lesson 8 of 11
Logging for automation
Record what unattended scripts do with the logging module: levels, named loggers, formats, log files and reading logs back.
You will be able to
- Choose the right logging level for a message and explain what the level threshold does
- Configure a named logger with a handler and a format
- Write a log file in the working folder without duplicating lines on repeated setup
- Read a log file back and summarise it by level
Included with a Formula Quest membership
It has 4 graded exercises with feedback, hints and solutions. Python Quest is included in Formula Quest memberships that cover Python; membership and billing are managed on Formula Quest.
View Formula Quest memberships
Tracks 1 and 2, the first lesson of every track, the playground and the dataset library are free.