diff options
author | jessib <jessib@riseup.net> | 2013-09-24 10:21:59 -0700 |
---|---|---|
committer | jessib <jessib@riseup.net> | 2013-09-24 10:21:59 -0700 |
commit | 663d37eef8fae9f1d27d115e48a7136309eab960 (patch) | |
tree | 5bfd01f2b213fb9e5ec8e63cd11c1ed3ec263113 | |
parent | 98db0cc42019dfcd90d58e0126fe691590fde2e2 (diff) | |
parent | 9fa07d19ab9ad8dea15b1fcb8b2c739d79a36d8f (diff) |
Merge pull request #89 from azul/feature/syslog-logging-again
Feature/syslog logging again
-rw-r--r-- | common_dependencies.rb | 3 | ||||
-rw-r--r-- | config/environments/production.rb | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/common_dependencies.rb b/common_dependencies.rb index c795d66..6a43e26 100644 --- a/common_dependencies.rb +++ b/common_dependencies.rb @@ -19,3 +19,6 @@ group :test, :development do gem 'quiet_assets' end +group :production do + gem 'SyslogLogger', '~> 2.0' +end diff --git a/config/environments/production.rb b/config/environments/production.rb index 73e98e5..7acca75 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -35,9 +35,8 @@ LeapWeb::Application.configure do # Use syslog if no file has been specified if APP_CONFIG[:logfile].blank? - # Prepend all log lines with the following tags - config.log_tags = [ :leap, :webapp ] - config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new) + require 'syslog/logger' + config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new('webapp')) end # Use a different cache store in production |