Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Logger::Formatter#msg2str
(::String | ::Exception | untyped msg) -> ::String
msg2str(msg)
lib/logger/formatter.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/logger/formatter.rb, line 25
def msg2str(msg)
case msg
when ::String
msg
when ::Exception
"#{ msg.message } (#{ msg.class })\n#{ msg.backtrace.join("\n") if msg.backtrace }"
else
msg.inspect
end
end
No documentation available