I am looking to ensure my jenkins logs only output WARNING or above and so I am using the logging.properties file. I don't actually want to change the logging format but this seems to have happened and now I am trying to change it to how it was. I have this so far in my logging.properties file:
.level = WARNING handlers= java.util.logging.ConsoleHandler java.util.logging.ConsoleHandler.level=WARNING java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter java.util.logging.SimpleFormatter.format=%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS.%1$tL %4$s %2$s %5$s%6$s%n
This shows the following log
2020-05-20 21:42:35.772 SEVERE org.datadog.jenkins.plugins.datadog.clients.DatadogHttpClient getInstance Datadog API Key is not set properly
On another jenkins where I haven't changed this the log is set to
2020-05-20 20:50:56.485+0000 [id=301210] INFO hudson.model.AsyncPeriodicWork#lambda$doRun$0: Finished Datadog Counters Publisher. 5 ms
What value do I need to give to java.util.logging.SimpleFormatter.format to achieve this?