Sha256: 1aa13f42cc1203c782d9cc83f13ff603cc097e5211f2734987eaad4d6ac0daab

Contents?: true

Size: 181 Bytes

Versions: 3

Compression:

Stored size: 181 Bytes

Contents

module Loopiator
  module Logger
    
    def log(level, message)
      (defined?(Rails) && Rails.logger) ? Rails.logger.send(level, message) : puts(message)
    end
    
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
loopiator-0.4.2 lib/loopiator/logger.rb
loopiator-0.4.1 lib/loopiator/logger.rb
loopiator-0.4.0 lib/loopiator/logger.rb