Sha256: bbe1e44f39f80bb29ed1a7607be722d62a47cad5fefa3a0c7354d9752dd88283

Contents?: true

Size: 971 Bytes

Versions: 2

Compression:

Stored size: 971 Bytes

Contents

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

# Load frameworks

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

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

2 entries across 2 versions & 1 rubygems

Version Path
timber-3.0.1 lib/timber.rb
timber-3.0.0 lib/timber.rb