Module: Baton::Logging

Included in:
Channel, Configuration, Consumer, ConsumerManager, Service
Defined in:
lib/baton/logging.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.loggerObject



9
10
11
12
# File 'lib/baton/logging.rb', line 9

def self.logger
  STDOUT.sync = true
  @logger ||= Logger.new(STDOUT)
end

.logger=(out) ⇒ Object



14
15
16
# File 'lib/baton/logging.rb', line 14

def self.logger=(out)
  @logger = Logger.new(out)
end

Instance Method Details

#loggerObject



5
6
7
# File 'lib/baton/logging.rb', line 5

def logger
  Baton::Logging.logger
end