Module: EventQ
- Defined in:
- lib/eventq_base/queue.rb,
lib/eventq_base/exchange.rb,
lib/eventq_base/worker_id.rb,
lib/eventq_base/message_args.rb,
lib/eventq_base/configuration.rb,
lib/eventq_base/eventq_logger.rb,
lib/eventq_base/nonce_manager.rb,
lib/eventq_base/queue_message.rb,
lib/eventq_base/event_raised_queue.rb,
lib/eventq_base/signature_providers.rb,
lib/eventq_base/event_raised_exchange.rb,
lib/eventq_base/queue_worker_contract.rb,
lib/eventq_base/eventq_client_contract.rb,
lib/eventq_base/serialization_providers.rb,
lib/eventq_base/subscription_manager_contract.rb,
lib/eventq_base/exceptions/invalid_signature_exception.rb,
lib/eventq_base/serialization_providers/jruby/oj/serializer.rb,
lib/eventq_base/serialization_providers/jruby/oj/date_writer.rb,
lib/eventq_base/serialization_providers/jruby/oj/hash_writer.rb,
lib/eventq_base/serialization_providers/jruby/oj/time_writer.rb,
lib/eventq_base/serialization_providers/jruby/oj/array_writer.rb,
lib/eventq_base/serialization_providers/jruby/oj/class_writer.rb,
lib/eventq_base/serialization_providers/jruby/oj/value_writer.rb,
lib/eventq_base/signature_providers/sha256_signature_provider.rb,
lib/eventq_base/serialization_providers/jruby/oj/rational_writer.rb,
lib/eventq_base/serialization_providers/jruby/oj/attribute_writer.rb,
lib/eventq_base/serialization_providers/jruby/oj/date_time_writer.rb,
lib/eventq_base/serialization_providers/oj_serialization_provider.rb,
lib/eventq_base/serialization_providers/json_serialization_provider.rb,
lib/eventq_base/serialization_providers/binary_serialization_provider.rb,
lib/eventq_base/serialization_providers/jruby/oj_serialization_provider.rb
Defined Under Namespace
Modules: Exceptions, SerializationProviders, SignatureProviders, WorkerId
Classes: Configuration, EventQClientContract, EventRaisedExchange, EventRaisedQueue, Exchange, MessageArgs, NonceManager, Queue, QueueMessage, QueueWorkerContract, SubscriptionManagerContract
Class Method Summary
collapse
Class Method Details
.log(type, message) ⇒ Object
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/eventq_base/eventq_logger.rb', line 13
def self.log(type, message)
case type
when :info
logger.info(message)
when :debug
logger.debug(message)
when :error
logger.error(message)
end
rescue
end
|
.logger ⇒ Object
5
6
7
|
# File 'lib/eventq_base/eventq_logger.rb', line 5
def self.logger
return @@logger
end
|
.set_logger(logger) ⇒ Object
9
10
11
|
# File 'lib/eventq_base/eventq_logger.rb', line 9
def self.set_logger(logger)
@@logger = logger
end
|