Sha256: b9752c92f01c2f985c81b8230fb9438c91bfe4aa094adc5fa55796c87f9f165c

Contents?: true

Size: 262 Bytes

Versions: 30

Compression:

Stored size: 262 Bytes

Contents

module Smess
  module Logging

    def logger
      # use the Rails logger if it's defined
      @logger ||= if defined?(Rails)
        Rails.logger
      else
        l = ::Logger.new(STDOUT)
        l.level = Logger::WARN
        l
      end
    end

  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
smess-3.3.0 lib/smess/logging.rb
smess-3.2.0 lib/smess/logging.rb
smess-3.1.2 lib/smess/logging.rb
smess-3.1.1 lib/smess/logging.rb
smess-3.1.0 lib/smess/logging.rb
smess-3.0.0 lib/smess/logging.rb
smess-2.3.0 lib/smess/logging.rb
smess-2.2.1 lib/smess/logging.rb
smess-2.2.0 lib/smess/logging.rb
smess-2.1.0 lib/smess/logging.rb
smess-2.0.8 lib/smess/logging.rb
smess-2.0.7 lib/smess/logging.rb
smess-2.0.6 lib/smess/logging.rb
smess-2.0.5 lib/smess/logging.rb
smess-2.0.4 lib/smess/logging.rb
smess-2.0.3 lib/smess/logging.rb
smess-2.0.2 lib/smess/logging.rb
smess-2.0.1 lib/smess/logging.rb
smess-2.0 lib/smess/logging.rb
smess-1.0.10 lib/smess/logging.rb