Class: SimpleLogger
- Inherits:
-
Object
- Object
- SimpleLogger
- Defined in:
- lib/simple_logger.rb
Constant Summary collapse
- LEVELS =
[:debug, :info, :warn, :error, :fatal]
Instance Attribute Summary collapse
-
#level ⇒ Object
Returns the value of attribute level.
Instance Method Summary collapse
-
#initialize(level = :info) ⇒ SimpleLogger
constructor
A new instance of SimpleLogger.
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
#level ⇒ Object
Returns the value of attribute level.
6 7 8 |
# File 'lib/simple_logger.rb', line 6 def level @level end |