Class: Dry::Monitor::Logger

Inherits:
Logger
  • Object
show all
Defined in:
lib/dry/monitor/logger.rb

Constant Summary collapse

DEFAULT_FORMATTER =
proc do |_severity, _datetime, _progname, msg|
  "#{msg}\n"
end

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Logger

Returns a new instance of Logger.



12
13
14
15
# File 'lib/dry/monitor/logger.rb', line 12

def initialize(*args)
  super
  self.formatter = DEFAULT_FORMATTER
end