instance method
msg2str
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18 PrivateAvailable in: v2.2.3 v2.3.18
Signature
msg2str(msg)
No documentation comment.
Parameters
-
msgreq
Source
# File activesupport/lib/active_support/core_ext/logger.rb, line 96
def msg2str(msg)
case msg
when ::String
msg
when ::Exception
"#{ msg.message } (#{ msg.class })\n" <<
(msg.backtrace || []).join("\n")
else
msg.inspect
end
end
Defined in activesupport/lib/active_support/core_ext/logger.rb line 96
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Logger::Formatter