I want to change only the msg part of the default_formatter in Ruby 1.9.3 Logger.
How can I do this?
I know that I can do
logger.formatter = proc do |severity, datetime, progname, msg|
"[mymessage] #{msg}\n"
end
but then I lose the other default formatting of severity, datetime, progname.
Ideally I'd like to just do msg = "[mymessage] " + msg and then execute the default formatter with this new msg.