Hi devs,
I'd like to apply
http://jira.xwiki.org/jira/browse/XWIKI-2667 , but one
thing I'd like to change is the format of the log messages. The current
patch uses String.format, but I prefer MessageFormat, as it is more
expressive, and it is already used by the localization tool.
So:
1. We use String.format, because:
- it is "simpler" (some say)
- it is familiar to C/C++ programmers
- it is a bit more customizable at the finer level
- the code is already written
2. We use MessageFormat, because:
- it is already used for localization strings
- it is more expressive (I really like the "choice" format)
- it is apparently less customizable, but it uses good defaults (I'd
rather specify that I want a "long" date format than a "DD MMMM HH:mm:ss
z" format)
- the changes are minimal
- I for one prefer this syntax, rather than the old printf one.
My +1 for option 2.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/