method
format
format(arg)
private
Formats arg for the logger
-
If arg is an Exception, it will format the error message and
the back trace.
-
If arg responds to #to_str, it will return it.
-
Otherwise it will return arg.inspect.