Module: Logtail::Config::Integrations
- Extended by:
- Integrations
- Included in:
- Integrations
- Defined in:
- lib/logtail-rails/config/action_view.rb,
lib/logtail-rails/config/active_record.rb,
lib/logtail-rails/config/action_controller.rb
Overview
Convenience module for accessing the various ‘Logtail::Integrations::*` classes through the Logtail::Config object. Logtail couples configuration with the class responsible for implementing it. This provides for a tighter design, but also requires the user to understand and access the various classes. This module aims to provide a simple ruby-like configuration interface for internal Logtail classes.
For example:
config = Logtail::Config.instance
config.integrations.active_record.silence = true
Instance Method Summary collapse
-
#action_controller ⇒ Object
Convenience method for accessing the Integrations::ActionController class specific configuration.
-
#action_view ⇒ Object
Convenience method for accessing the Integrations::ActionView class specific configuration.
-
#active_record ⇒ Object
Convenience method for accessing the Integrations::ActiveRecord class specific configuration.
Instance Method Details
#action_controller ⇒ Object
Convenience method for accessing the Integrations::ActionController class specific configuration.
24 25 26 |
# File 'lib/logtail-rails/config/action_controller.rb', line 24 def action_controller Logtail::Integrations::ActionController end |
#action_view ⇒ Object
Convenience method for accessing the Integrations::ActionView class specific configuration.
24 25 26 |
# File 'lib/logtail-rails/config/action_view.rb', line 24 def action_view Logtail::Integrations::ActionView end |
#active_record ⇒ Object
Convenience method for accessing the Integrations::ActiveRecord class specific configuration.
24 25 26 |
# File 'lib/logtail-rails/config/active_record.rb', line 24 def active_record Logtail::Integrations::ActiveRecord end |