Module: EventHub

Defined in:
lib/eventhub/helper.rb,
lib/eventhub/message.rb,
lib/eventhub/version.rb,
lib/eventhub/constant.rb,
lib/eventhub-processor.rb,
lib/eventhub/processor.rb,
lib/eventhub/multi_logger.rb,
lib/eventhub/configuration.rb

Defined Under Namespace

Modules: Helper Classes: Configuration, Message, MultiLogger, Processor

Constant Summary collapse

VERSION =
"0.0.7"
EH_X_INBOUND =
'event_hub.inbound'
STATUS_INITIAL =

initial status code

0
STATUS_SUCCESS =

compare with HTTP Status Code: Success

200
STATUS_RETRIED =

compare with HTTP Status Code: Multiple Choices

300
STATUS_INVALID =

compare with HTTP Status Code: Bad request

400
STATUS_UNDELIVERABLE =

comapre with HTTP Status Code: Server Error

500
STATUS_ERROR =

Business Process Error

600

Class Method Summary collapse

Class Method Details

.loggerObject



20
21
22
23
24
25
26
# File 'lib/eventhub-processor.rb', line 20

def self.logger
  unless @logger
    a = Logger.new(STDOUT)
    @logger = MultiLogger.new(a)
  end
  @logger
end