Module: Pubsubstub::Logging

Included in:
StreamAction, Subscriber, Subscription
Defined in:
lib/pubsubstub/logging.rb

Instance Method Summary collapse

Instance Method Details

#debugObject



11
12
13
# File 'lib/pubsubstub/logging.rb', line 11

def debug
  Pubsubstub.logger.debug { "[#{self.class.name}] #{yield}" }
end

#errorObject



3
4
5
# File 'lib/pubsubstub/logging.rb', line 3

def error
  Pubsubstub.logger.error { "[#{self.class.name}] #{yield}" }
end

#infoObject



7
8
9
# File 'lib/pubsubstub/logging.rb', line 7

def info
  Pubsubstub.logger.info { "[#{self.class.name}] #{yield}" }
end