Module: EntityStore::Logging

Included in:
EventBus, Store
Defined in:
lib/entity_store/logging.rb

Instance Method Summary collapse

Instance Method Details

#log_error(message, exception) ⇒ Object



10
11
12
13
14
15
# File 'lib/entity_store/logging.rb', line 10

def log_error(message, exception)
  if Config.logger
    Config.logger.error message
    Config.logger.error exception.backtrace.join("\n\t")
  end
end