Sha256: 10cf0f9ec3010987789310421920ba276d5c6bed7ceb02c0cb07100b086afb0c

Contents?: true

Size: 410 Bytes

Versions: 2

Compression:

Stored size: 410 Bytes

Contents

Rails.application.configure do
  return unless config.x.json_logs

  # See https://github.com/roidrage/lograge for more information on how to configure the gem
  # This only configures logs to be formatted as JSON when lograge is enabled but you can do much more with it,
  # like annotating logs with user IDs
  config.lograge.enabled = true
  config.lograge.formatter = Lograge::Formatters::Logstash.new
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rsg-0.1.0 lib/rsg/generators/logging/templates/initializer_lograge.rb.tt
rsg-0.0.1 lib/rsg/generators/logging/templates/initializer_lograge.rb