Commit 76e57b7715d51fa21af9094949b49d6042966612
1 parent
c3b1585e
Exists in
master
and in
79 other branches
Send colab logs to syslog
Signed-off-by: Sergio Oliveira <sergio@tracy.com.br>
Showing
1 changed file
with
11 additions
and
0 deletions
Show diff stats
cookbooks/colab/templates/02-logging.yaml.erb
| ... | ... | @@ -6,7 +6,16 @@ LOGGING: |
| 6 | 6 | verbose: |
| 7 | 7 | format: '%(asctime)s (%(name)s) %(levelname)s: %(message)s' |
| 8 | 8 | |
| 9 | + simple: | |
| 10 | + format: '[colab-spb] (%(name)s) %(levelname)s: %(message)s' | |
| 11 | + | |
| 9 | 12 | handlers: |
| 13 | + syslog: | |
| 14 | + level: WARNING | |
| 15 | + class: logging.handlers.SysLogHandler | |
| 16 | + formatter: simple | |
| 17 | + address: /dev/log | |
| 18 | + | |
| 10 | 19 | file: |
| 11 | 20 | level: DEBUG |
| 12 | 21 | class: logging.handlers.TimedRotatingFileHandler |
| ... | ... | @@ -20,9 +29,11 @@ LOGGING: |
| 20 | 29 | django: |
| 21 | 30 | handlers: |
| 22 | 31 | - file |
| 32 | + - syslog | |
| 23 | 33 | level: DEBUG |
| 24 | 34 | |
| 25 | 35 | revproxy: |
| 26 | 36 | handlers: |
| 27 | 37 | - file |
| 38 | + - syslog | |
| 28 | 39 | level: ERROR | ... | ... |