class Log
Focus Inspector - The focus inspection and lens calibration software.
Copyright © 2012 by Chris Schlaeger <chris@linux.com>
This program is Open Source software; you can redistribute it and/or modify it under the terms of MIT license as shipped with this software.
Public Class Methods
debug(msg)
click to toggle source
# File lib/focusinspector/Log.rb, line 26 def Log::debug(msg) puts msg if @@level > 1 end
error(msg)
click to toggle source
end
# File lib/focusinspector/Log.rb, line 17 def Log::error(msg) $stderr.puts "\nERROR: #{msg}" exit 1 end
warn(msg)
click to toggle source
# File lib/focusinspector/Log.rb, line 22 def Log::warn(msg) $stderr.puts "\nWARNING: #{msg}" if @@level > 0 end