Sha256: 4a90c35e81ad3c79541c180c22ae971387ec747db2ab7bbd165881e7156abbba
Contents?: true
Size: 460 Bytes
Versions: 4
Compression:
Stored size: 460 Bytes
Contents
module Aldous class LoggingWrapper class << self def log(error) if error.kind_of?(String) ::Aldous.config.error_reporter.report(error) ::Aldous.config.logger.info(error) else # it's an error object ::Aldous.config.error_reporter.report(error) ::Aldous.config.logger.info(error.message) ::Aldous.config.logger.info(error.backtrace.join("\n")) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
aldous-1.1.3 | lib/aldous/logging_wrapper.rb |
aldous-1.1.2 | lib/aldous/logging_wrapper.rb |
aldous-1.0.1 | lib/aldous/logging_wrapper.rb |
aldous-1.0.0 | lib/aldous/logging_wrapper.rb |