19.2 Configuring Logging
The logging library is a part of Python, and its use is crucial to Django websites. Logging is a functionality whereby the computer records every activity, in sequential order, and stores the record in a file, colloquially called a log file. Developers can refer to the log files to find out exactly what was happening on the server at a given point in time (typically, they want to know what activity took place immediately before something went terribly wrong).
Logging can also be used to discover if parts of the website are not working properly in this case, the log is viewed in real time for quality assurance or troubleshooting. We focus largely on using logging to figure out when a part of Django is not communicating ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access