Class: Lazylead::Log

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/lazylead/log.rb

Overview

The main application logger

Instance Method Summary collapse

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

#nothingObject



40
41
42
43
# File 'lib/lazylead/log.rb', line 40

def nothing
  @log = Lazylead::Level::NOTHING
  self
end

#verboseObject



45
46
47
48
# File 'lib/lazylead/log.rb', line 45

def verbose
  @log = Lazylead::Level::DEBUG
  self
end