Class: ActiveSupport::Logger::SimpleFormatter

Inherits:
Logger::Formatter
  • Object
show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/logger.rb

Overview

Simple formatter which only displays the message.

Instance Method Summary collapse

Instance Method Details

#call(severity, timestamp, progname, msg) ⇒ Object

This method is invoked when a log event occurs



88
89
90
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/logger.rb', line 88

def call(severity, timestamp, progname, msg)
  "#{String === msg ? msg : msg.inspect}\n"
end