Sha256: 66f347e051663f51465a3d50765a30bd43bafc14f44b882b4ef8268152ab8e3c
Contents?: true
Size: 390 Bytes
Versions: 138
Compression:
Stored size: 390 Bytes
Contents
class Ridgepole::Logger < ::Logger include Singleton cattr_accessor :verbose def initialize super($stdout) self.formatter = proc do |severity, datetime, progname, msg| "#{msg}\n" end self.level = Logger::INFO end def verbose_info(msg) info(msg) if verbose end def set_debug(value) self.level = value ? Logger::DEBUG : Logger::INFO end end
Version data entries
138 entries across 138 versions & 1 rubygems