Class: Warren::Handler::Log::Queue
- Inherits:
-
Object
- Object
- Warren::Handler::Log::Queue
- Defined in:
- lib/warren/handler/log.rb
Overview
Queue class to provide extended logging in development mode
Instance Method Summary collapse
- #bind(exchange, options) ⇒ Object
-
#initialize(logger, name) ⇒ Queue
constructor
A new instance of Queue.
- #subscribe(options) ⇒ Object
Constructor Details
#initialize(logger, name) ⇒ Queue
Returns a new instance of Queue.
55 56 57 58 |
# File 'lib/warren/handler/log.rb', line 55 def initialize(logger, name) @logger = logger @name = name end |
Instance Method Details
#bind(exchange, options) ⇒ Object
60 61 62 |
# File 'lib/warren/handler/log.rb', line 60 def bind(exchange, ) @logger.debug "Bound queue #{@name}: #{exchange}, #{.inspect}" end |
#subscribe(options) ⇒ Object
64 65 66 67 68 |
# File 'lib/warren/handler/log.rb', line 64 def subscribe() @logger.debug "Subscribed to queue #{@name}: #{.inspect}" @logger.warn 'This is a Warren::Handler::Log no messages will be processed' nil end |