Sha256: ccc21b3c0a60a02148cb3acaeeaa335645c2375795c3989c66c4d605a84f3dd2
Contents?: true
Size: 536 Bytes
Versions: 20
Compression:
Stored size: 536 Bytes
Contents
module Sentry module LoggingHelper def log_error(message, exception, debug: false) message = "#{message}: #{exception.message}" message += "\n#{exception.backtrace.join("\n")}" if debug logger.error(LOGGER_PROGNAME) do message end end def log_info(message) logger.info(LOGGER_PROGNAME) { message } end def log_debug(message) logger.debug(LOGGER_PROGNAME) { message } end def log_warn(message) logger.warn(LOGGER_PROGNAME) { message } end end end
Version data entries
20 entries across 20 versions & 1 rubygems