Skip to content

Commit b28c534

Browse files
committed
Minimal properties to get JUnit tests working for ESAPIEncoderTest.
1 parent 7086f40 commit b28c534

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed
Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,38 @@
1-
ESAPI.Encoder=org.owasp.encoder.esapi.ESAPIEncoder
1+
# Properties based on ESAPI 2.2.1.1's configuration/esapi/ESAPI.properties file.
2+
3+
ESAPI.Encoder=org.owasp.encoder.esapi.ESAPIEncoder
4+
5+
# Log4JFactory Requires log4j.xml or log4j.properties in classpath - http://www.laliluna.de/log4j-tutorial.html
6+
# Note that this is now considered deprecated!
7+
#ESAPI.Logger=org.owasp.esapi.logging.log4j.Log4JLogFactory
8+
9+
# To use JUL, you need to obtain ESAPI's esapi-java-logging.properties and drop
10+
# it somewhere into your class path. You can get it from the ESAPI configuration
11+
# jar. (See Release 2.2.1.1 under GitHub for ESAPI/esapi-java-legacy.)
12+
13+
#ESAPI.Logger=org.owasp.esapi.logging.java.JavaLogFactory
14+
# To use the new SLF4J logger in ESAPI (see GitHub issue #129), set
15+
ESAPI.Logger=org.owasp.esapi.logging.slf4j.Slf4JLogFactory
16+
# and do whatever other normal SLF4J configuration that you normally would do for your application.
17+
18+
# Note: The uncommented out ones are those needed for SLF4J. Others may be
19+
# needed if you change the ESAPI logger.
20+
#===========================================================================
21+
# ESAPI Logging
22+
# Set the application name if these logs are combined with other applications
23+
Logger.ApplicationName=ESAPI-Shim-Test
24+
# If you use an HTML log viewer that does not properly HTML escape log data, you can set LogEncodingRequired to true
25+
Logger.LogEncodingRequired=false
26+
# Determines whether ESAPI should log the application name. This might be clutter in some single-server/single-app environments.
27+
Logger.LogApplicationName=true
28+
# Determines whether ESAPI should log the server IP and port. This might be clutter in some single-server environments.
29+
Logger.LogServerIP=false
30+
# LogFileName, the name of the logging file. Provide a full directory path (e.g., C:\\ESAPI\\ESAPI_logging_file) if you
31+
# want to place it in a specific directory.
32+
#Logger.LogFileName=ESAPI_logging_file
33+
# MaxLogFileSize, the max size (in bytes) of a single log file before it cuts over to a new one (default is 10,000,000)
34+
#Logger.MaxLogFileSize=10000000
35+
# Determines whether ESAPI should log the user info.
36+
Logger.UserInfo=false
37+
# Determines whether ESAPI should log the session id and client IP
38+
Logger.ClientInfo=false

0 commit comments

Comments
 (0)