Add support for generating logstash friendly logs
This commit is contained in:
parent
29e364d585
commit
82cefb5929
4 changed files with 19 additions and 0 deletions
|
@ -48,5 +48,13 @@ module OpenStreetMap
|
|||
if defined?(MEMCACHE_SERVERS)
|
||||
config.cache_store = :mem_cache_store, MEMCACHE_SERVERS, { :namespace => "rails:cache" }
|
||||
end
|
||||
|
||||
# Use logstash for logging if required
|
||||
if defined?(LOGSTASH_PATH)
|
||||
config.logstasher.enabled = true
|
||||
config.logstasher.suppress_app_log = false
|
||||
config.logstasher.logger_path = LOGSTASH_PATH
|
||||
config.logstasher.log_controller_parameters = true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -63,6 +63,8 @@ defaults: &defaults
|
|||
attachments_dir: ":rails_root/public/attachments"
|
||||
# Log file to use
|
||||
#log_path: ""
|
||||
# Log file to use for logstash
|
||||
#logstash_path: ""
|
||||
# List of memcache servers to use for caching
|
||||
#memcache_servers: []
|
||||
# Enable legacy OAuth 1.0 support
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue