Sha256: ac758c585106424f7e539abc52ebebf8e732be4cc53aa8fe34d10c40872e062b
Contents?: true
Size: 1 KB
Versions: 17
Compression:
Stored size: 1 KB
Contents
require "logtail-rails/active_record" module Logtail class Config # 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 module Integrations extend self # Convenience method for accessing the {Logtail::Integrations::ActiveRecord} class # specific configuration. # # @example # config = Logtail::Config.instance # config.integrations.active_record.silence = true def active_record Logtail::Integrations::ActiveRecord end end end end
Version data entries
17 entries across 17 versions & 1 rubygems