Skip to content

Commit d816d12

Browse files
committed
Change from using SLF4J to JUL for logging.
1 parent b28c534 commit d816d12

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

esapi/src/test/resources/.esapi/ESAPI.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ ESAPI.Encoder=org.owasp.encoder.esapi.ESAPIEncoder
99
# To use JUL, you need to obtain ESAPI's esapi-java-logging.properties and drop
1010
# it somewhere into your class path. You can get it from the ESAPI configuration
1111
# jar. (See Release 2.2.1.1 under GitHub for ESAPI/esapi-java-legacy.)
12+
ESAPI.Logger=org.owasp.esapi.logging.java.JavaLogFactory
1213

13-
#ESAPI.Logger=org.owasp.esapi.logging.java.JavaLogFactory
1414
# To use the new SLF4J logger in ESAPI (see GitHub issue #129), set
15-
ESAPI.Logger=org.owasp.esapi.logging.slf4j.Slf4JLogFactory
15+
#ESAPI.Logger=org.owasp.esapi.logging.slf4j.Slf4JLogFactory
1616
# and do whatever other normal SLF4J configuration that you normally would do for your application.
1717

1818
# Note: The uncommented out ones are those needed for SLF4J. Others may be
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
handlers= java.util.logging.ConsoleHandler
2+
.level= INFO
3+
java.util.logging.ConsoleHandler.level = INFO
4+
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
5+
java.util.logging.SimpleFormatter.format=[%1$tF %1$tT] [%3$-7s] %5$s %n
6+
#https://www.logicbig.com/tutorials/core-java-tutorial/logging/customizing-default-format.html

0 commit comments

Comments
 (0)