Sha256: b8a6050a813c9297dd4fdbc549224f2cc6b78bd4c75208b9c946a4c455d01315

Contents?: true

Size: 265 Bytes

Versions: 3

Compression:

Stored size: 265 Bytes

Contents

require 'logger'

module StateFu
  if Object.const_defined?( "RAILS_DEFAULT_LOGGER" )
    Logger       = RAILS_DEFAULT_LOGGER
  else
    Logger       = ::Logger.new( STDOUT )
    Logger.level = ::Logger.const_get( (ENV["ZEN_LOGLEVEL"] || 'WARN').upcase )
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
davidlee-state-fu-0.0.1 lib/state_fu/logger.rb
davidlee-state-fu-0.0.2 lib/state_fu/logger.rb
davidlee-state-fu-0.2.0 lib/state_fu/logger.rb