Class: Log
- Inherits:
-
Object
- Object
- Log
- Defined in:
- lib/focusinspector/Log.rb
Overview
Focus Inspector - The focus inspection and lens calibration software.
Copyright © 2012 by Chris Schlaeger <[email protected]>
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.
Constant Summary collapse
- @@level =
def initialize(logLevel)
1
Class Method Summary collapse
Class Method Details
.debug(msg) ⇒ Object
26 27 28 |
# File 'lib/focusinspector/Log.rb', line 26 def Log::debug(msg) puts msg if @@level > 1 end |
.error(msg) ⇒ Object
end
17 18 19 20 |
# File 'lib/focusinspector/Log.rb', line 17 def Log::error(msg) $stderr.puts "\nERROR: #{msg}" exit 1 end |
.warn(msg) ⇒ Object
22 23 24 |
# File 'lib/focusinspector/Log.rb', line 22 def Log::warn(msg) $stderr.puts "\nWARNING: #{msg}" if @@level > 0 end |