Class: SimpleLogger

Inherits:
Object
  • Object
show all
Defined in:
lib/simple_logger.rb

Constant Summary collapse

LEVELS =
[:debug, :info, :warn, :error, :fatal]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(level = :info) ⇒ SimpleLogger

Returns a new instance of SimpleLogger.



8
9
10
# File 'lib/simple_logger.rb', line 8

def initialize(level = :info)
  self.level = level
end

Instance Attribute Details

#levelObject

Returns the value of attribute level.



6
7
8
# File 'lib/simple_logger.rb', line 6

def level
  @level
end