class Rake::Delphi::Logger
Constants
- DEBUG
- NORMAL
- TRACE
- VERBOSE
Public Class Methods
debug?()
click to toggle source
# File lib/rake/common/logger.rb, line 10 def self.debug? return ENV['RAKE_DELPHI_TRACE'].to_i >= DEBUG end
trace(level, msg)
click to toggle source
# File lib/rake/common/logger.rb, line 14 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