Avoid ' in log formats as it could be misinterpreted as an escape character.
The format method probably needs to be synchronized.
· A single args array is reused between calls, presumably to avoid allocation.
· MessageFormat is not thread-safe.
[FIXED JENKINS-19876] Store custom log contents to disk.