# HG changeset patch # User edogawaconan # Date 1381379252 0 # Node ID 9d6f13168d2535d199285b5e7491c266d8e0e5ec # Parent 9aa67da381b0d96777d288c2bd57a927c1fd6160 Output log to stdout which will be captured by rack logger. diff -r 9aa67da381b0 -r 9d6f13168d25 config/environments/production.rb --- a/config/environments/production.rb Thu Oct 10 04:25:07 2013 +0000 +++ b/config/environments/production.rb Thu Oct 10 04:27:32 2013 +0000 @@ -42,8 +42,15 @@ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. # config.force_ssl = true + # # Default logging formatter to keep PID and timestamp + config.log_formatter = Logger::Formatter.new + # Set to :debug to see everything in the log. - config.log_level = :info + config.log_level = :warn + config.logger = Logger.new(STDOUT) + + # Recommended by http://help.papertrailapp.com/kb/configuration/unicorn + config.logger.level = Logger.const_get('WARN') # Prepend all log lines with the following tags. # config.log_tags = [ :subdomain, :uuid ]