I am using Java Util logging and whenever I do statement like this
logger.log(Level.INFO, "print this number = {0}", number);
it formats my number from 278487683165614 to 278,487,683,165,614
this is extremely annoying while searching through logs.
Can i stop it from doing this ? Please help.
The default format isn't what you want, change it like this :
{0,number,#}
EDIT :
Here you have more information about MessageFormatPattern http://docs.oracle.com/javase/1.5.0/docs/api/java/text/MessageFormat.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With