X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/861a08cdc38728e9f988a0a321e62693e26e947f..c51a084ecf2fefb54ef9f74b21beff437ac9a4bb:/project/settings.py diff --git a/project/settings.py b/project/settings.py index 7d2ed64e..fc242509 100644 --- a/project/settings.py +++ b/project/settings.py @@ -133,6 +133,19 @@ EDITOR_DEFAULT_SETTINGS = { ], } +# Python logging settings +import logging + +log = logging.getLogger('platforma') +log.setLevel(logging.DEBUG) +ch = logging.StreamHandler() +ch.setLevel(logging.DEBUG) +formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') +ch.setFormatter(formatter) +log.addHandler(ch) + + +# Import localsettings file, which may override settings defined here try: from localsettings import * except ImportError: