Module: Logging
- Included in:
- TogglV8::Connection
- Defined in:
- lib/logging.rb
Overview
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
Addition
18 19 20 21 22 23 24 |
# File 'lib/logging.rb', line 18 def self.included(base) class << base def logger Logging.logger end end end |
.logger ⇒ Object
8 9 10 |
# File 'lib/logging.rb', line 8 def logger @logger ||= Logger.new($stdout) end |
.logger=(logger) ⇒ Object
12 13 14 |
# File 'lib/logging.rb', line 12 def logger=(logger) @logger = logger end |