Class: Sentry::Logger
- Inherits:
-
Logger
- Object
- Logger
- Sentry::Logger
- Defined in:
- lib/sentry/logger.rb
Constant Summary collapse
- LOG_PREFIX =
"** [Sentry] "
- PROGNAME =
"sentry"
Instance Method Summary collapse
-
#initialize ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
#initialize ⇒ Logger
Returns a new instance of Logger.
10 11 12 13 14 15 16 17 18 |
# File 'lib/sentry/logger.rb', line 10 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 |