Insert structured logs.
Add informative logging statements to the following Python code using the logging module.