This is a long shot, but I'm hoping to replace the newline literals in MessageFormat code like
LOG.log(INFO, "message={0}\nAnd extra blank line\n", new String[]{message});
with a platform-independent pattern. The String.format() pattern %n does not work for Logger or MessageFormat. I'd like to avoid passing System.lineseperator as an argument like this:
LOG.log(INFO, "message={0}{1}And a blank line{1}",new String[]{message, System.lineSeparator()});
I don't see any mention of newline or lineseparator in the docs for MessageFormat, but perhaps it is mentioned somewhere else. https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/text/MessageFormat.html