method
msg2str
v2.1.0 -
Show latest stable
- Class:
Logger::Formatter
msg2str(msg)private
No documentation available.
# File activesupport/lib/active_support/clean_logger.rb, line 80
def msg2str(msg)
case msg
when ::String
msg
when ::Exception
"#{ msg.message } (#{ msg.class })\n" <<
(msg.backtrace || []).join("\n")
else
msg.inspect
end
end