root / snf-pithos-app / pithos / api / synnefo_settings.py @ 4a669c71
History | View | Annotate | Download (802 Bytes)
1 | 18d8fb23 | Antony Chazapis | # Setup logging (use this name for the setting to avoid conflicts with django > 1.2.x).
|
---|---|---|---|
2 | 18d8fb23 | Antony Chazapis | LOGGING_SETUP = { |
3 | 18d8fb23 | Antony Chazapis | 'version': 1, |
4 | 18d8fb23 | Antony Chazapis | 'disable_existing_loggers': True, |
5 | 18d8fb23 | Antony Chazapis | 'formatters': {
|
6 | 18d8fb23 | Antony Chazapis | 'simple': {
|
7 | 18d8fb23 | Antony Chazapis | 'format': '%(message)s' |
8 | 18d8fb23 | Antony Chazapis | }, |
9 | 18d8fb23 | Antony Chazapis | 'verbose': {
|
10 | 18d8fb23 | Antony Chazapis | 'format': '%(asctime)s [%(levelname)s] %(name)s %(message)s' |
11 | 18d8fb23 | Antony Chazapis | }, |
12 | 18d8fb23 | Antony Chazapis | }, |
13 | 18d8fb23 | Antony Chazapis | 'handlers': {
|
14 | 18d8fb23 | Antony Chazapis | 'null': {
|
15 | 18d8fb23 | Antony Chazapis | 'class': 'logging.NullHandler', |
16 | 18d8fb23 | Antony Chazapis | }, |
17 | 18d8fb23 | Antony Chazapis | 'console': {
|
18 | 18d8fb23 | Antony Chazapis | 'class': 'logging.StreamHandler', |
19 | 18d8fb23 | Antony Chazapis | 'formatter': 'verbose' |
20 | 18d8fb23 | Antony Chazapis | }, |
21 | f270dad5 | root | 'file': {
|
22 | f270dad5 | root | 'class': 'logging.FileHandler', |
23 | f270dad5 | root | 'formatter': 'verbose' |
24 | f270dad5 | root | }, |
25 | 18d8fb23 | Antony Chazapis | }, |
26 | 18d8fb23 | Antony Chazapis | 'loggers': {
|
27 | 18d8fb23 | Antony Chazapis | 'pithos': {
|
28 | 18d8fb23 | Antony Chazapis | 'handlers': ['console'], |
29 | 4a669c71 | Kostas Papadimitriou | 'level': 'INFO' |
30 | 18d8fb23 | Antony Chazapis | }, |
31 | 18d8fb23 | Antony Chazapis | } |
32 | 18d8fb23 | Antony Chazapis | } |