Class: ScribeIt::Log
- Inherits:
-
Logger
- Object
- Logger
- ScribeIt::Log
- Defined in:
- lib/scribeit/log.rb
Instance Attribute Summary collapse
-
#level ⇒ Object
Returns the value of attribute level.
Instance Method Summary collapse
-
#initialize(name) ⇒ Log
constructor
A new instance of Log.
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
#level ⇒ Object
Returns the value of attribute level.
5 6 7 |
# File 'lib/scribeit/log.rb', line 5 def level @level end |