OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/config/initializers/lograge.rb

13 lines
415 B

Rails.application.configure do
next unless OpenProject::Logging.lograge_enabled?
config.lograge.enabled = true
config.lograge.formatter = OpenProject::Logging.formatter
config.lograge.base_controller_class = %w[ActionController::Base]
# Add custom data to event payload
config.lograge.custom_payload do |controller|
::OpenProject::Logging.extend_payload!({}, { controller: controller })
end
end