Sha256: 5e0ac740aec65f4f467de89cbacc550c0f1527328ce39e28da91e1a5a111d7c3

Contents?: true

Size: 969 Bytes

Versions: 22

Compression:

Stored size: 969 Bytes

Contents

# Base (must come first, order matters)
require "timber/version"
require "timber/overrides"
require "timber/config"
require "timber/util"

# Other (sorted alphabetically)
require "timber/contexts"
require "timber/current_context"
require "timber/events"
require "timber/log_devices"
require "timber/log_entry"
require "timber/logger"
require "timber/integrations"
require "timber/timer"

# Load frameworks
require "timber/frameworks"

module Timber
  # Access the main configuration object. Please see {{Timber::Config}} for more details.
  def self.config
    Config.instance
  end

  # Starts a timer for timing events. Please see {{Timber::Timber.start}} for more details.
  def self.start_timer
    Timer.start
  end

  # Adds context to all logs written within the passed block. Please see
  # {{Timber::CurrentContext.with}} for a more detailed description with examples.
  def self.with_context(context, &block)
    CurrentContext.with(context, &block)
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
timber-2.6.2 lib/timber.rb
timber-2.6.1 lib/timber.rb
timber-2.6.0 lib/timber.rb
timber-2.6.0.pre.beta2 lib/timber.rb
timber-2.6.0.pre.beta1 lib/timber.rb
timber-2.5.1 lib/timber.rb
timber-2.5.0 lib/timber.rb
timber-2.4.0 lib/timber.rb
timber-2.3.4 lib/timber.rb
timber-2.3.3 lib/timber.rb
timber-2.3.2 lib/timber.rb
timber-2.3.1 lib/timber.rb
timber-2.3.0 lib/timber.rb
timber-2.2.3 lib/timber.rb
timber-2.2.2 lib/timber.rb
timber-2.2.1 lib/timber.rb
timber-2.2.0 lib/timber.rb
timber-2.1.10 lib/timber.rb
timber-2.1.9 lib/timber.rb
timber-2.1.8 lib/timber.rb