summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-09-02 10:12:07 +0200
committerAzul <azul@leap.se>2013-09-02 10:12:07 +0200
commita93615cf9762be6cd08b50600eab971f197e9445 (patch)
treeb1bc34047d76a5604a13338bee6acf6aeff8b5b2 /config
parent060e06daa065f02b811dfe12850b101a62c12c8d (diff)
add config setting for logfile
This is the most simple thing that could possibly work. If you do not specify a :logfile in your environments config Rails will use the default.
Diffstat (limited to 'config')
-rw-r--r--config/application.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/application.rb b/config/application.rb
index 354127b..e8bb2f4 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -54,6 +54,10 @@ module LeapWeb
# Configure sensitive parameters which will be filtered from the log file.
config.filter_parameters += [:password]
+ if APP_CONFIG[:logfile]
+ config.logger = Logger.new(APP_CONFIG[:logfile])
+ end
+
# Enable escaping HTML in JSON.
config.active_support.escape_html_entities_in_json = true