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

Version Path
sentry-ruby-core-4.8.0 lib/sentry/utils/logging_helper.rb
sentry-ruby-core-4.7.3 lib/sentry/utils/logging_helper.rb
sentry-ruby-core-4.7.2 lib/sentry/utils/logging_helper.rb
sentry-ruby-core-4.7.1 lib/sentry/utils/logging_helper.rb
sentry-ruby-core-4.7.0 lib/sentry/utils/logging_helper.rb
sentry-ruby-core-4.6.5 lib/sentry/utils/logging_helper.rb
sentry-ruby-core-4.6.4 lib/sentry/utils/logging_helper.rb
sentry-ruby-core-4.6.3 lib/sentry/utils/logging_helper.rb
sentry-ruby-core-4.6.2 lib/sentry/utils/logging_helper.rb
sentry-ruby-core-4.6.1 lib/sentry/utils/logging_helper.rb
sentry-ruby-core-4.6.0 lib/sentry/utils/logging_helper.rb
sentry-ruby-core-4.6.0.pre.beta.0 lib/sentry/utils/logging_helper.rb
sentry-ruby-core-4.5.2 lib/sentry/utils/logging_helper.rb
sentry-ruby-core-4.5.1 lib/sentry/utils/logging_helper.rb
sentry-ruby-core-4.5.0 lib/sentry/utils/logging_helper.rb
sentry-ruby-core-4.5.0.pre.beta.1 lib/sentry/utils/logging_helper.rb
sentry-ruby-core-4.4.2 lib/sentry/utils/logging_helper.rb
sentry-ruby-core-4.4.1 lib/sentry/utils/logging_helper.rb
sentry-ruby-core-4.4.0 lib/sentry/utils/logging_helper.rb
sentry-ruby-core-4.4.0.pre.beta.0 lib/sentry/utils/logging_helper.rb