comparison config/environments/production.rb @ 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 d4cf49db9c49
children d47274afe845
comparison
equal deleted inserted replaced
247:9aa67da381b0 248:9d6f13168d25
40 # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx 40 # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
41 41
42 # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. 42 # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
43 # config.force_ssl = true 43 # config.force_ssl = true
44 44
45 # # Default logging formatter to keep PID and timestamp
46 config.log_formatter = Logger::Formatter.new
47
45 # Set to :debug to see everything in the log. 48 # Set to :debug to see everything in the log.
46 config.log_level = :info 49 config.log_level = :warn
50 config.logger = Logger.new(STDOUT)
51
52 # Recommended by http://help.papertrailapp.com/kb/configuration/unicorn
53 config.logger.level = Logger.const_get('WARN')
47 54
48 # Prepend all log lines with the following tags. 55 # Prepend all log lines with the following tags.
49 # config.log_tags = [ :subdomain, :uuid ] 56 # config.log_tags = [ :subdomain, :uuid ]
50 57
51 # Use a different logger for distributed setups. 58 # Use a different logger for distributed setups.