Module: Pubsubstub::Logging
- Included in:
- StreamAction, Subscriber, Subscription
- Defined in:
- lib/pubsubstub/logging.rb
Instance Method Summary collapse
Instance Method Details
#debug ⇒ Object
11 12 13 |
# File 'lib/pubsubstub/logging.rb', line 11 def debug Pubsubstub.logger.debug { "[#{self.class.name}] #{yield}" } end |
#error ⇒ Object
3 4 5 |
# File 'lib/pubsubstub/logging.rb', line 3 def error Pubsubstub.logger.error { "[#{self.class.name}] #{yield}" } end |
#info ⇒ Object
7 8 9 |
# File 'lib/pubsubstub/logging.rb', line 7 def info Pubsubstub.logger.info { "[#{self.class.name}] #{yield}" } end |