Sha256: 571dc9c600e999a394a861dd62368bf17af11ba884e821d5156476b95c5f31cb
Contents?: true
Size: 1.16 KB
Versions: 18
Compression:
Stored size: 1.16 KB
Contents
module Logtail # An integration represent an integration for an entire library. For example, `Rack`. # While the Logtail `Rack` integration is comprised of multiple middlewares, the # `Logtail::Integrations::Rack` module is an entire integration that extends this module. module Integration # Easily sisable entire library integrations. This is like removing the code from # Logtail. It will not touch this library and the library will function as it would # without Logtail. # # @example # Logtail::Integrations::ActiveRecord.enabled = false def enabled=(value) @enabled = value end # Accessor method for {#enabled=} def enabled? @enabled != false end # Silences a library's logs. This ensures that logs are not generated at all # from this library. # # @example # Logtail::Integrations::ActiveRecord.silence = true def silence=(value) @silence = value end # Accessor method for {#silence=} def silence? @silence == true end # Abstract method that each integration must implement. def integrate! raise NotImplementedError.new end end end
Version data entries
18 entries across 18 versions & 2 rubygems