instance method msg2str

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18 Private

Available in: v2.2.3 v2.3.18

Signature

msg2str(msg)

No documentation comment.

Parameters

msg req
Source
# File activesupport/lib/active_support/core_ext/logger.rb, line 98
        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 98 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Logger::Formatter

Type at least 2 characters to search.

↑↓ navigate · open · esc close