Sha256: bfa9d6678922779f68faaa599226ad6abeabdfb53ae8289b8913ef3c4cf6e957
Contents?: true
Size: 488 Bytes
Versions: 20
Compression:
Stored size: 488 Bytes
Contents
require 'logger' module PDK def self.logger @logger ||= PDK::Logger.new end class Logger < ::Logger def initialize super(STDERR) # TODO: Decide on output format. self.formatter = proc do |severity, _datetime, _progname, msg| "pdk (#{severity}): #{msg}\n" end self.level = ::Logger::INFO end def enable_debug_output self.level = ::Logger::DEBUG end def debug? level == ::Logger::DEBUG end end end
Version data entries
20 entries across 20 versions & 2 rubygems