Class: ScribeIt::Log

Inherits:
Logger
  • Object
show all
Defined in:
lib/scribeit/log.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Log

Returns a new instance of Log.



7
8
9
10
# File 'lib/scribeit/log.rb', line 7

def initialize(name)
  super(name)
  @level = $DEBUG ? Logger::DEBUG : Logger::INFO
end

Instance Attribute Details

#levelObject

Returns the value of attribute level.



5
6
7
# File 'lib/scribeit/log.rb', line 5

def level
  @level
end