Sha256: aee32043b8381a81504a412fe191cf0be614eb391b39547032dfe03f6495566c

Contents?: true

Size: 423 Bytes

Versions: 30

Compression:

Stored size: 423 Bytes

Contents

require "singleton"

module Timber
  # Interface for configuring Timber.
  #
  # @note If using rails this will be installed in the `config` object via `config.timber`.
  class Config
    include Singleton

    attr_writer :logger

    # Set a logger to view internal Timber library log message.
    # Useful for debugging. Defaults to `::Logger.new(nil)`.
    def logger
      @logger ||= Logger.new(nil)
    end
  end
end

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
timber-1.1.14 lib/timber/config.rb
timber-1.1.13 lib/timber/config.rb
timber-1.1.12 lib/timber/config.rb
timber-1.1.11 lib/timber/config.rb
timber-1.1.10 lib/timber/config.rb
timber-1.1.9 lib/timber/config.rb
timber-1.1.8 lib/timber/config.rb
timber-1.1.7 lib/timber/config.rb
timber-1.1.6 lib/timber/config.rb
timber-1.1.5 lib/timber/config.rb
timber-1.1.4 lib/timber/config.rb
timber-1.1.3 lib/timber/config.rb
timber-1.1.2 lib/timber/config.rb
timber-1.1.1 lib/timber/config.rb
timber-1.1.0 lib/timber/config.rb
timber-1.0.13 lib/timber/config.rb
timber-1.0.12 lib/timber/config.rb
timber-1.0.11 lib/timber/config.rb
timber-1.0.10 lib/timber/config.rb
timber-1.0.9 lib/timber/config.rb