Commits

Anonymous committed be93973

mv etc/settings/log.py etc/settings/loging.py

  • Participants
  • Parent commits 9693eaa

Comments (0)

Files changed (3)

File etc/settings/__init__.py

 from .generic import *
 from .cache import *
 from .database import *
-from .log import *
+from .logging import *
 from .template import *
 from .apps.compressor import *

File etc/settings/log.py

-from os import path
-import logging
-
-from .generic import PROJECT_ROOT, PROJECT
-
-
-LOGGING_FILENAME = path.join(PROJECT_ROOT, 'log/%s.log' % PROJECT)
-
-LOGGING = {
-    'version': 1,
-    'disable_existing_loggers': True,
-    'formatters': {
-        'verbose': {
-            'format': '%(asctime)s %(levelname)-8s %(name)s: %(message)s',
-            'datefmt': '%Y-%m-%d %H:%M:%S',
-        },
-        'devserver': {
-            'format': '[%(asctime)s] %(name)s: %(message)s',
-            'datefmt': '%d/%b/%Y %H:%M:%S',
-        },
-    },
-    'handlers': {
-        'null': {
-            'level': 'DEBUG',
-            'class': 'django.utils.log.NullHandler',
-        },
-        'console':{
-            'level': 'DEBUG',
-            'class': 'logging.StreamHandler',
-            'formatter': 'devserver',
-        },
-        'file':{
-            'level': 'DEBUG',
-            'class': 'logging.FileHandler',
-            'formatter': 'verbose',
-            'filename': LOGGING_FILENAME,
-        },
-        'mail_admins': {
-            'level': 'ERROR',
-            'class': 'django.utils.log.AdminEmailHandler',
-        }
-    },
-    'loggers': {
-        '': {
-            'handlers': ['file'],
-            'propagate': True,
-            'level': 'WARNING',
-        },
-        'django': {
-            'handlers': ['null'],
-            'propagate': False,
-            'level': 'INFO',
-        },
-        'django.request': {
-            'handlers': ['mail_admins'],
-            'level': 'ERROR',
-            'propagate': False,
-        },
-    }
-}

File etc/settings/loging.py

+from os import path
+import logging
+
+from .generic import PROJECT_ROOT, PROJECT
+
+
+LOGGING_FILENAME = path.join(PROJECT_ROOT, 'log/%s.log' % PROJECT)
+
+LOGGING = {
+    'version': 1,
+    'disable_existing_loggers': True,
+    'formatters': {
+        'verbose': {
+            'format': '%(asctime)s %(levelname)-8s %(name)s: %(message)s',
+            'datefmt': '%Y-%m-%d %H:%M:%S',
+        },
+        'devserver': {
+            'format': '[%(asctime)s] %(name)s: %(message)s',
+            'datefmt': '%d/%b/%Y %H:%M:%S',
+        },
+    },
+    'handlers': {
+        'null': {
+            'level': 'DEBUG',
+            'class': 'django.utils.log.NullHandler',
+        },
+        'console':{
+            'level': 'DEBUG',
+            'class': 'logging.StreamHandler',
+            'formatter': 'devserver',
+        },
+        'file':{
+            'level': 'DEBUG',
+            'class': 'logging.FileHandler',
+            'formatter': 'verbose',
+            'filename': LOGGING_FILENAME,
+        },
+        'mail_admins': {
+            'level': 'ERROR',
+            'class': 'django.utils.log.AdminEmailHandler',
+        }
+    },
+    'loggers': {
+        '': {
+            'handlers': ['file'],
+            'propagate': True,
+            'level': 'WARNING',
+        },
+        'django': {
+            'handlers': ['null'],
+            'propagate': False,
+            'level': 'INFO',
+        },
+        'django.request': {
+            'handlers': ['mail_admins'],
+            'level': 'ERROR',
+            'propagate': False,
+        },
+    }
+}