Revision a0b5eea5 snf-common/synnefo/settings/default/logging.py

b/snf-common/synnefo/settings/default/logging.py
3 3
# Logging configuration
4 4
##################################
5 5

  
6
LOGGING = {
6
LOGGING_SETUP = {
7 7
    'version': 1,
8 8
    'disable_existing_loggers': True,
9 9

  
10 10
    'formatters': {
11 11
        'simple': {
12
            'format': '%(message)s'
12
            'format': '%(asctime)s [%(levelname)s] %(message)s'
13 13
        },
14 14
        'verbose': {
15
            'format': '%(asctime)s [%(levelname)s] %(message)s'
15
            'format': '%(asctime)s %(name)s %(module)s [%(levelname)s] %(message)s'
16 16
        },
17 17
        'django': {
18 18
            'format': '[%(asctime)s] %(levelname)s %(message)s',
......
26 26
        },
27 27
        'console': {
28 28
            'class': 'logging.StreamHandler',
29
            'formatter': 'django'
29
            'formatter': 'simple'
30 30
        },
31 31
        'syslog': {
32 32
            'class': 'logging.handlers.SysLogHandler',
......
39 39
    },
40 40

  
41 41
    'loggers': {
42
        'synnefo': {
43
            'handlers': ['syslog'],
42
        '': {
43
            'handlers': ['console'],
44 44
            'level': 'INFO'
45 45
        },
46
        'synnefo': {
47
            'handlers': ['console'],
48
            'level': 'INFO',
49
            'propagate': 0
50
        },
46 51
        'synnefo.admin': {
47 52
            'level': 'INFO',
48 53
            'propagate': 1
......
61 66
        },
62 67
    }
63 68
}
64

  

Also available in: Unified diff