From 9bf4f290adec2ec6d0a1ef164a1b470ca8aa4deb Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Fri, 12 Dec 2014 09:28:44 +0100 Subject: Log to syslog in production. --- config/environments/production.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/environments/production.rb b/config/environments/production.rb index 65c0e3c..e39ab27 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -1,3 +1,5 @@ +require 'syslog/logger' + BetaWebApp::Application.configure do # Settings specified here will take precedence over those in config/application.rb @@ -37,7 +39,7 @@ BetaWebApp::Application.configure do # config.log_tags = [ :subdomain, :uuid ] # Use a different logger for distributed setups - # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new) + config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new('hmno')) # Use a different cache store in production # config.cache_store = :mem_cache_store -- cgit v1.2.3