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 ...
Get Django Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.