Module: Logtail::Config::Integrations
Defined Under Namespace
Modules: Rack
Instance Method Summary collapse
-
#rack ⇒ Object
Convenience module for accessing the various ‘Logtail::Integrations::Rack::*` classes through the Logtail::Config object.
Instance Method Details
#rack ⇒ Object
Convenience module for accessing the various ‘Logtail::Integrations::Rack::*` classes through the Logtail::Config object. Logtail couples configuration with the class responsibls 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.rack.http_events.enabled = false
21 22 23 |
# File 'lib/logtail-rack/config.rb', line 21 def rack Rack end |