summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2013-09-02 11:21:05 -0700
committerjessib <jessib@riseup.net>2013-09-02 11:21:05 -0700
commitb69d37fcf00b7acfe1f35c3a6d79f244c5c28e01 (patch)
tree533fba4aa7dcc07004bb226001f65ed78996a594 /config
parent6110093e939db07fd27fac7c28ddcd09a49e70ed (diff)
parentb142aa6d348fae98eeba73d9f57d22497c204b08 (diff)
Merge pull request #77 from azul/feature/3522-configurable-logfile
add config setting for logfile
Diffstat (limited to 'config')
-rw-r--r--config/application.rb4
-rw-r--r--config/defaults.yml1
2 files changed, 5 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
diff --git a/config/defaults.yml b/config/defaults.yml
index 8b17b77..910fbf8 100644
--- a/config/defaults.yml
+++ b/config/defaults.yml
@@ -41,3 +41,4 @@ production:
admins: []
domain: example.net
payment: []
+# logfile: /path/to/your/logs