Mercurial > zeropaste
changeset 248:9d6f13168d25
Output log to stdout which will be captured by rack logger.
author | edogawaconan <me@myconan.net> |
---|---|
date | Thu, 10 Oct 2013 04:27:32 +0000 |
parents | 9aa67da381b0 |
children | 620934712308 |
files | config/environments/production.rb |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 ]