Sha256: 58093d086fddecb26810120d485ebf9da4823c55e921faf0f28fc7e2ee5b3688
Contents?: true
Size: 517 Bytes
Versions: 5
Compression:
Stored size: 517 Bytes
Contents
# encoding: utf-8 module Rake module Delphi class Logger NORMAL = 0 VERBOSE = 1 DEBUG = 2 TRACE = 3 def self.debug? return ENV['RAKE_DELPHI_TRACE'].to_i >= DEBUG end def self.trace(level, msg) if ENV['RAKE_DELPHI_TRACE'].to_i >= level if msg.kind_of?(String) $stderr.puts(msg) else require 'pp' PP.pp(msg, $stderr) end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems