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 end end