Sha256: 86c90dd9a220b17922c05f78cfa632b87ef6fbe118083b2673e0de210f11ca58
Contents?: true
Size: 634 Bytes
Versions: 1
Compression:
Stored size: 634 Bytes
Contents
module Rails module Service module Boot module_function STATUS_CONTROLLER = 'Rails::Service::StatusController'.freeze def lograge(app) return unless defined?(Lograge) && !app.config.lograge.enable app.config.lograge.ignore_custom = lambda { |event| !app.config.service.status_logs_enabled && event.payload[:controller] == STATUS_CONTROLLER } app.config.lograge.custom_options = lambda { |_event| { dc: app.config.service.dc, host: app.config.service.host, app: app.config.service.app } } Lograge.setup(app) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails-service-0.1.0 | lib/rails/service/boot.rb |