Class: Cangaroo::Logger
- Inherits:
-
Object
- Object
- Cangaroo::Logger
- Includes:
- Singleton
- Defined in:
- lib/cangaroo/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.
7 8 9 |
# File 'lib/cangaroo/logger.rb', line 7 def initialize @logger = Rails.configuration.cangaroo.logger || Rails.logger end |
Instance Attribute Details
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
5 6 7 |
# File 'lib/cangaroo/logger.rb', line 5 def logger @logger end |