Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find Documentation on the Java SimpleFormatter format strings? [closed]

I'm trying to modify a logging.properties file that uses the java SimpleFormatter. I can set the
java.util.logging.SimpleFormatter.format = "" property, but I can't find documentation on what you can put in it. I've found several examples, but NONE of them tell me what the possibilities are. They just say that "%4$s: %5$s [%1$tc]%n" does such-and-such. I'm hoping that some docs exist somewhere.

like image 467
CasaDelGato Avatar asked Dec 07 '12 01:12

CasaDelGato


1 Answers

Start with the API docs. The docs for java.util.logging.SimpleFormatter#format() give a link to java.util.Formatter which has detailed information about formatting syntax in Java. (In other words, I'm repeating the comment from @HovercraftFullOfEels.)

like image 122
Code-Apprentice Avatar answered Oct 13 '22 20:10

Code-Apprentice