Sha256: af362fe16cdb8b27945c9942bb5dd19b2c6c8cb14d8afa5a6a207e3916e9f2c0

Contents?: true

Size: 349 Bytes

Versions: 1

Compression:

Stored size: 349 Bytes

Contents

require 'logger'

module DynoscaleAgent
  module Logger

    def self.logger
      @@logger ||= if defined?(Rails)
        Rails.logger
      else
        ::Logger.new(STDOUT)
      end
      if ENV['DYNOSCALE_DEV']
      	@@logger.level = ::Logger::DEBUG
      else
        @@logger.level = ::Logger::WARN
      end
      @@logger
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dynoscale_agent-1.0.0 lib/dynoscale_agent/logger.rb