From 76e57b7715d51fa21af9094949b49d6042966612 Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Thu, 27 Aug 2015 19:15:46 -0300 Subject: [PATCH] Send colab logs to syslog --- cookbooks/colab/templates/02-logging.yaml.erb | 11 +++++++++++ 1 file changed, 11 insertions(+), 0 deletions(-) diff --git a/cookbooks/colab/templates/02-logging.yaml.erb b/cookbooks/colab/templates/02-logging.yaml.erb index 7f6fe2f..ee082df 100644 --- a/cookbooks/colab/templates/02-logging.yaml.erb +++ b/cookbooks/colab/templates/02-logging.yaml.erb @@ -6,7 +6,16 @@ LOGGING: verbose: format: '%(asctime)s (%(name)s) %(levelname)s: %(message)s' + simple: + format: '[colab-spb] (%(name)s) %(levelname)s: %(message)s' + handlers: + syslog: + level: WARNING + class: logging.handlers.SysLogHandler + formatter: simple + address: /dev/log + file: level: DEBUG class: logging.handlers.TimedRotatingFileHandler @@ -20,9 +29,11 @@ LOGGING: django: handlers: - file + - syslog level: DEBUG revproxy: handlers: - file + - syslog level: ERROR -- libgit2 0.21.2