Sha256: a3317d4f3c419bd13cbe340ae24f004e64414d83356041a40aff280ad42aae6e
Contents?: true
Size: 579 Bytes
Versions: 4
Compression:
Stored size: 579 Bytes
Contents
require 'logger' module Ridley # @author Jamie Winsor <jamie@vialstudios.com> module Logging class << self # @return [Logger] def logger @logger ||= begin log = Logger.new(STDOUT) log.level = Logger::WARN log end end # @param [Logger, nil] obj # # @return [Logger] def set_logger(obj) @logger = (obj.nil? ? Logger.new('/dev/null') : obj) end end # @return [Logger] def logger Ridley::Logging.logger end alias_method :log, :logger end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ridley-0.5.2 | lib/ridley/logging.rb |
ridley-0.5.1 | lib/ridley/logging.rb |
ridley-0.5.0 | lib/ridley/logging.rb |
ridley-0.4.1 | lib/ridley/logging.rb |