Sha256: 907e93863406122d041c166e83ce37d1508380731f86bedb7ce62ffde84dcf63
Contents?: true
Size: 364 Bytes
Versions: 23
Compression:
Stored size: 364 Bytes
Contents
require 'logger' require 'delegate' require 'singleton' module PKGWizard OriginalLogger = Logger class Logger < SimpleDelegator include Singleton def initialize @logger = OriginalLogger.new(STDOUT) super @logger end end def set_output(log_device) @logger = OriginalLogger.new(log_device) __setobj__(@logger) end end
Version data entries
23 entries across 23 versions & 1 rubygems