Class: Spin::Logger
- Inherits:
-
Object
- Object
- Spin::Logger
- Extended by:
- Forwardable
- Defined in:
- lib/spin/logger.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
#initialize ⇒ Logger
Returns a new instance of Logger.
15 16 17 18 19 |
# File 'lib/spin/logger.rb', line 15 def initialize @logger = ::Logger.new($stdout) @logger.level = level @logger.formatter = formatter end |
Instance Attribute Details
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
8 9 10 |
# File 'lib/spin/logger.rb', line 8 def logger @logger end |