Ticket #17680: ticket17680-patch.diff

File ticket17680-patch.diff, 832 bytes (added by vanessagomes, 12 years ago)

Here is a suggestion for the documentation.

  • docs/topics/logging.txt

    diff --git a/docs/topics/logging.txt b/docs/topics/logging.txt
    index aa2afba..8f5cd31 100644
    a b Since the loading of settings is one of the first things that Django  
    223223does, you can be certain that loggers are always ready for use in your
    224224project code.
    225225
     226.. note::
     227    When using Logging for command line applications, the
     228    ''import logging'' statement is not suficient to initialize.
     229    You should force them to become initialized, by using the
     230    following code in your application::
     231       
     232        import django.conf
     233        django.conf.settings.LOGGING
     234
    226235.. _dictConfig format: http://docs.python.org/library/logging.config.html#configuration-dictionary-schema
    227236
    228237.. _a third-party library: http://bitbucket.org/vinay.sajip/dictconfig
Back to Top