```ruby
Rails.application.configure do
  config.lograge.enabled = true


  config.lograge.custom_payload do |controller|
    {
      application_id: controller.current_application.try(:id),
      application_type: controller.current_application.try(:class),
    }
  end
end
```

Add current admin user’s email to every log line.
user
```ruby
Rails.application.configure do
  config.lograge.enabled = true


  config.lograge.custom_payload do |controller|
    {
      application_id: controller.current_application.try(:id),
      application_type: controller.current_application.try(:class),
      current_admin_user_email: controller.current_admin_user.try(:email)
    }
  end
end
```
assistant