O'Reilly logo

Django Unleashed by Andrew Pinkham

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required