Sha256: 929ba14c5402f6737e678767fb76c668df3ea2449d17429a40622ab0ee7d2ca1

Contents?: true

Size: 477 Bytes

Versions: 30

Compression:

Stored size: 477 Bytes

Contents

# frozen_string_literal: true
require 'logger'

module Raven
  class Logger < ::Logger
    LOG_PREFIX = "** [Raven] ".freeze
    PROGNAME   = "sentry".freeze

    def initialize(*)
      super
      @level = ::Logger::INFO
      original_formatter = ::Logger::Formatter.new
      @default_formatter = proc do |severity, datetime, _progname, msg|
        msg = "#{LOG_PREFIX}#{msg}"
        original_formatter.call(severity, datetime, PROGNAME, msg)
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 3 rubygems

Version Path
sentry-raven-3.0.0 lib/raven/logger.rb
sentry-raven-2.13.0 lib/raven/logger.rb
sentry-raven-2.12.3 lib/raven/logger.rb
sentry-raven-2.12.2 lib/raven/logger.rb
sentry-raven-2.12.1 lib/raven/logger.rb
sentry-raven-2.12.0 lib/raven/logger.rb
sentry-raven-2.11.3 lib/raven/logger.rb
sentry-raven-2.11.2 lib/raven/logger.rb
sentry-raven-2.11.1 lib/raven/logger.rb
sentry-raven-2.11.0 lib/raven/logger.rb
sentry-raven-2.10.0 lib/raven/logger.rb
sentry-raven-2.9.0 lib/raven/logger.rb
sentry-raven-2.8.0 lib/raven/logger.rb
sentry-raven-2.7.4 lib/raven/logger.rb
sentry-raven-2.7.3 lib/raven/logger.rb
jones-gem-2.7.2 lib/raven/logger.rb
alec-gem-2.7.2 lib/raven/logger.rb
sentry-raven-2.7.2 lib/raven/logger.rb
sentry-raven-2.7.1 lib/raven/logger.rb
sentry-raven-2.6.3 lib/raven/logger.rb