I have some unexplained behavior with java.util.logging
. Let's take a look at these two samples:
First:
boolean var = false;
log.log( Level.WARNING, "Cant {0}", new Object[] { var } );
output:
Cant false
Second:
boolean var = false;
log.log( Level.WARNING, "Can't {0}", new Object[] { var } );
output:
Can't {0}
Why does the inclusion of an apostrophe ( ' ) causes the logger not to expand the token?
Cant false
. – Parodist