Sha256: 07436292085efcb8cca89c362aec801b06747560f9e20b68dd365ef394ca293e
Contents?: true
Size: 394 Bytes
Versions: 1
Compression:
Stored size: 394 Bytes
Contents
require 'logger' module Kanina # Simplifies sending messages to standard output and/or the Rails log files. module Logger DEFAULT_LOG_LEVEL = ::Logger::INFO def logger Rails.logger ||= ::Logger.new(STDOUT) @logger ||= Rails.logger end def say(text, level = DEFAULT_LOG_LEVEL) puts text if @loud logger.add level, "HARE: #{text}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kanina-0.6.0 | lib/kanina/logger.rb |