Sha256: 13610927874bf0941c82e5e6c4dc8ad4cdf425003289e9a40902d4a5caef7680

Contents?: true

Size: 457 Bytes

Versions: 7

Compression:

Stored size: 457 Bytes

Contents

require 'shog/version'
require 'shog/formatter'
require 'shog/formatters'
require 'shog/rails'
require 'shog/extensions'

module Shog

  # Set up formatting options for the default rails logger.
  # @see Shog::Formatter#configure
  def self.configure(&block)
    formatter = ::Rails.logger.formatter
    unless formatter.is_a? Shog::Formatter
      formatter = ::Rails.logger.formatter = Shog::Formatter.new
    end
    formatter.configure &block
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
shog-0.2.1 lib/shog.rb
shog-0.2.0 lib/shog.rb
shog-0.1.9 lib/shog.rb
shog-0.1.8 lib/shog.rb
shog-0.1.7 lib/shog.rb
shog-0.1.6 lib/shog.rb
shog-0.1.5 lib/shog.rb