Logging

Applies to: general

Logging records what a program is doing while it runs. Logs are essential when you cannot inspect the program interactively.

import logging
logging.info("started")

See also: debugging