You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Issue 710 JUL Respect LogManager Config
Updating JUL to check for existing global LogManager configuration prior
to applying ESAPI file settings.
Adding tests to verify LogManager Configurations are preferred to the
ESAPI configurations.
* 710 JavaLogFactory javadoc updates
Capturing recomended configuration options for class use.
* JavaDoc Update JUL
Updating terminology referencing LogManager configuration to match terms
use in LogManager documentation.
* JavaLogFactory LogSpecial on LogManager config
Adding startup System.out.println content (logSpecial) if the custom
esapi-java-logging.properties file is not being applied to the
underlying java LogManager instance.
* JavaLogFactory Javadoc Updates
Attempting to clarify differences between the -D use or
System.setProperty for LogManager configuration recommendations.
* JavaLogFactory Javadoc update
Adding reference to ESAPI Wiki page.
* LogFactory implementation which creates JAVA supporting Loggers.
46
-
*
47
-
* This implementation requires that a file named 'esapi-java-logging.properties' exists on the classpath.
48
-
* <br>
49
-
* A default file implementation is available in the configuration jar on GitHub under the 'Releases'
47
+
* <br><br>
48
+
* Options for customizing this configuration (in recommended order)
49
+
* <ol>
50
+
* <li>Consider using the <i>SLF4JLogFactory</i> with a java-logging implementation.</li>
51
+
* <li>Configure the runtime startup command to set the desired system properties for the <i>java.util.logging.LogManager</i> instance. EG: <code>-Djava.util.logging.config.file=/custom/file/path.properties</code></li>
52
+
* <li>Overwrite the esapi-java-logging.properties file with the desired logging configurations. <br>A default file implementation is available in the configuration jar on GitHub under the 'Releases'</li>
53
+
* <li>Apply custom-code solution to set the system properties for the <i>java.util.logging.LogManager</i> at runtime. EG: <code>System.setProperty("java.util.logging.config.file", "/custom/file/path.properties");</code></li>
54
+
* <li>Create a custom JavaLogFactory class in client project baseline and update the ESAPI.properties configuration to use that reference.</li>
55
+
* </ol>
56
+
*
57
+
* @see <a href="https://github.com/ESAPI/esapi-java-legacy/wiki/Configuration-Reference:-JavaLogFactory">ESAPI Wiki - Configuration Reference: JavaLogFactory</a>
50
58
*
51
59
*/
52
60
publicclassJavaLogFactoryimplementsLogFactory {
@@ -93,6 +101,24 @@ public class JavaLogFactory implements LogFactory {
93
101
* @param logManager LogManager which is being configured.
//[ESAPI-STARTUP] ESAPI JavaLogFactory Configuration will not be applied. java.util.LogManager configuration Detected.{"java.util.logging.config.class":"some.defined.value","java.util.logging.config.file":"null"}
118
+
}
119
+
120
+
return;
121
+
}
96
122
/*
97
123
* This will load the logging properties file to control the format of the output for Java logs.
0 commit comments