Module: Logging
- Included in:
- DanmuClient
- Defined in:
- lib/danmu/misc/logging.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
Addition
16 17 18 19 20 21 22 |
# File 'lib/danmu/misc/logging.rb', line 16 def self.included(base) class << base def logger Logging.logger end end end |
.logger ⇒ Object
6 7 8 |
# File 'lib/danmu/misc/logging.rb', line 6 def logger @logger ||= Logger.new($stdout) end |
.logger=(logger) ⇒ Object
10 11 12 |
# File 'lib/danmu/misc/logging.rb', line 10 def logger=(logger) @logger = logger end |
Instance Method Details
#logger ⇒ Object
24 25 26 |
# File 'lib/danmu/misc/logging.rb', line 24 def logger Logging.logger end |