ForgeRock Identity Platform
Does not apply to Identity Cloud

Customizing Java Log Format to use SimpleFormatter fails in IDM (All versions)

Last updated Jan 12, 2023

The purpose of this article is to provide assistance when customizing the Java® Log Format to use the SimpleFormatter format fails in IDM.


The SimpleFormatter log format does not work in IDM. For example, the following format string in does not work:

-Djava.util.logging.SimpleFormatter.format="%4$s: %5$s [%1$tc]%n"

The JVM fails to pick up the new format and continues to write the logs using the default format.

Recent Changes



This issue occurs if the format string is specified in the file instead of the file and the $ symbol is not escaped.


This issue can be resolved by specifying the format string in the file, which applies the SimpleFormatter formatting correctly.

Alternatively, if you want to make changes to the file, you must escape the $ symbol using \. For example, you would add the following system property to the java exec line in the file:

-Djava.util.logging.SimpleFormatter.format="%4\$s: %5\$s [%1\$tc]%n"

See Also

Configure Server Logs

Java Logging Overview

Class Formatter

Class SimpleFormatter

Related Training


Related Issue Tracker IDs


Copyright and Trademarks Copyright © 2023 ForgeRock, all rights reserved.