Class: Lazylead::Log
- Inherits:
-
Object
- Object
- Lazylead::Log
- Extended by:
- Forwardable
- Defined in:
- lib/lazylead/log.rb
Overview
The main application logger
Instance Method Summary collapse
-
#initialize(log = Lazylead::Level::ERRORS) ⇒ Log
constructor
A new instance of Log.
- #nothing ⇒ Object
- #verbose ⇒ Object
Constructor Details
#initialize(log = Lazylead::Level::ERRORS) ⇒ Log
Returns a new instance of Log.
35 36 37 38 |
# File 'lib/lazylead/log.rb', line 35 def initialize(log = Lazylead::Level::ERRORS) @log = log @log = Lazylead::Level::DEBUG if ARGV.include? "--trace" end |
Instance Method Details
#nothing ⇒ Object
40 41 42 43 |
# File 'lib/lazylead/log.rb', line 40 def nothing @log = Lazylead::Level::NOTHING self end |
#verbose ⇒ Object
45 46 47 48 |
# File 'lib/lazylead/log.rb', line 45 def verbose @log = Lazylead::Level::DEBUG self end |