Sha256: cca13826cfe99218155da62fee4e6c0b9edbc895d862ef696f0441fbe164a92c
Contents?: true
Size: 398 Bytes
Versions: 80
Compression:
Stored size: 398 Bytes
Contents
module Kumogata def self.logger Kumogata::Logger.instance end class Logger < ::Logger include Singleton def initialize super($stdout) self.formatter = proc do |severity, datetime, progname, msg| "#{msg}\n" end self.level = Logger::INFO end def set_debug(value) self.level = value ? Logger::DEBUG : Logger::INFO end end end
Version data entries
80 entries across 80 versions & 1 rubygems