Class: AMQPLogging::Logger
- Inherits:
-
Logger
- Object
- Logger
- AMQPLogging::Logger
- Defined in:
- lib/amqp_logging/logger.rb
Constant Summary collapse
- DEFAULT_OPTIONS =
{ :shift_age => 0, :shift_size => 1048576, :host => "localhost", :exchange => "logging_exchange", :queue => "logging_queue", :routing_key => "logs", :exchange_durable => true, :exchange_auto_delete => false, :exchange_type => :topic, }
Instance Attribute Summary collapse
-
#errback ⇒ Object
Returns the value of attribute errback.
-
#extra_attributes ⇒ Object
Returns the value of attribute extra_attributes.
Instance Method Summary collapse
-
#initialize(options = DEFAULT_OPTIONS) ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
#initialize(options = DEFAULT_OPTIONS) ⇒ Logger
Returns a new instance of Logger.
17 18 19 20 21 22 |
# File 'lib/amqp_logging/logger.rb', line 17 def initialize(=DEFAULT_OPTIONS) = DEFAULT_OPTIONS.merge() super(nil) @logdev = AMQPLogging::LogDevice.new() @logdev.logger = self end |
Instance Attribute Details
#errback ⇒ Object
Returns the value of attribute errback.
15 16 17 |
# File 'lib/amqp_logging/logger.rb', line 15 def errback @errback end |
#extra_attributes ⇒ Object
Returns the value of attribute extra_attributes.
14 15 16 |
# File 'lib/amqp_logging/logger.rb', line 14 def extra_attributes @extra_attributes end |