djangosnippets.org: Latest snippets posted by mihasyahttps://djangosnippets.org/users/mihasya/2009-02-28T14:41:31.188570-06:00mihasyaReusable Logging
2009-02-28T14:41:31.188570-06:00mihasyahttps://djangosnippets.org/snippets/1345/<p>"Thus, if a LOGGER is configured inside settings.py, we use that. Otherwise, we just use vanilla logging functions with the global logging configuration. Nice and sweet."</p>
<p>Naturally, the logger can be anything described <a href="http://docs.python.org/library/logging.html">here</a>, I'm just using the RotatingFileHandler as an example because that's what I was using in …</p>
Freely redistributable