Sha256: e6aabf74af73234ce70d0eef69049cfa79e619e4e9a0bd6d9e648e8546673b8f
Contents?: true
Size: 466 Bytes
Versions: 109
Compression:
Stored size: 466 Bytes
Contents
# frozen_string_literal: true require 'logger' module Sentry class Logger < ::Logger LOG_PREFIX = "** [Sentry] " PROGNAME = "sentry" 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
109 entries across 109 versions & 3 rubygems