-
Notifications
You must be signed in to change notification settings - Fork 367
Configuring the JavaLogFactory
jeremiahjstacey edited this page May 26, 2024
·
4 revisions
To configure the JavaLogFactory for ESAPI configure the java.util.logging.LogManager instance within the jvm by specifying
-Djava.util.logging.config.file=path/to/configuration.properties
An Application Restart may be required for changes to take effect.
Refer to the java LogManager Documentation for more information on how to customize and configure Java Logging for the application.
In previous deliveries of the ESAPI library, the esapi-java-logging.properties file would default to:
handlers= java.util.logging.ConsoleHandler
.level= INFO
java.util.logging.ConsoleHandler.level = INFO
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
java.util.logging.SimpleFormatter.format=[%1$tF %1$tT] [%3$-7s] %5$s %n
References: Github Issue #839