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.
Try one of the below (don’t have the visibility of your
numberobject type):Using
String.valueOf()Using
Number.toStringUsing
NumberFormat.setGroupingUsed(false)