Method: Log::Formatter#msg2str
- Defined in:
- lib/pmux/util_logger.rb
#msg2str(msg) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/pmux/util_logger.rb', line 15 def msg2str(msg) case msg when ::String msg when ::Exception "#{ msg.message } (#{ msg.class })\n" << (msg.backtrace || []).join("\n") else msg.inspect end end |