Sha256: 489ff653bc4417d322ec629310a7fff77e7e1ddb999ba08feda44e58a8c1aad9

Contents?: true

Size: 280 Bytes

Versions: 15

Compression:

Stored size: 280 Bytes

Contents

module YogiBerra
  class Logger
    def self.log(log_string, level = :info)
      message = "[YogiBerra #{level.to_s.capitalize}] #{log_string}"
      if defined?(Rails)
        Rails.logger.send(level, message)
      else
        $stderr.puts(message)
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
yogi_berra-0.1.1 lib/yogi_berra/logger.rb
yogi_berra-0.1.0 lib/yogi_berra/logger.rb
yogi_berra-0.0.15 lib/yogi_berra/logger.rb
yogi_berra-0.0.14 lib/yogi_berra/logger.rb
yogi_berra-0.0.13 lib/yogi_berra/logger.rb
yogi_berra-0.0.12 lib/yogi_berra/logger.rb
yogi_berra-0.0.11 lib/yogi_berra/logger.rb
yogi_berra-0.0.10 lib/yogi_berra/logger.rb
yogi_berra-0.0.9 lib/yogi_berra/logger.rb
yogi_berra-0.0.8 lib/yogi_berra/logger.rb
yogi_berra-0.0.6 lib/yogi_berra/logger.rb
yogi_berra-0.0.5 lib/yogi_berra/logger.rb
yogi_berra-0.0.4 lib/yogi_berra/logger.rb
yogi_berra-0.0.3 lib/yogi_berra/logger.rb
yogi_berra-0.0.2 lib/yogi_berra/logger.rb