-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from kwwall/master
Changes to get owasp-java-encoder to work with ESAPI 2.2.0.0 and later
- Loading branch information
Showing
4 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,38 @@ | ||
ESAPI.Encoder=org.owasp.encoder.esapi.ESAPIEncoder | ||
# Properties based on ESAPI 2.2.1.1's configuration/esapi/ESAPI.properties file. | ||
|
||
ESAPI.Encoder=org.owasp.encoder.esapi.ESAPIEncoder | ||
|
||
# Log4JFactory Requires log4j.xml or log4j.properties in classpath - http://www.laliluna.de/log4j-tutorial.html | ||
# Note that this is now considered deprecated! | ||
#ESAPI.Logger=org.owasp.esapi.logging.log4j.Log4JLogFactory | ||
|
||
# To use JUL, you need to obtain ESAPI's esapi-java-logging.properties and drop | ||
# it somewhere into your class path. You can get it from the ESAPI configuration | ||
# jar. (See Release 2.2.1.1 under GitHub for ESAPI/esapi-java-legacy.) | ||
ESAPI.Logger=org.owasp.esapi.logging.java.JavaLogFactory | ||
|
||
# To use the new SLF4J logger in ESAPI (see GitHub issue #129), set | ||
#ESAPI.Logger=org.owasp.esapi.logging.slf4j.Slf4JLogFactory | ||
# and do whatever other normal SLF4J configuration that you normally would do for your application. | ||
|
||
# Note: The uncommented out ones are those needed for SLF4J. Others may be | ||
# needed if you change the ESAPI logger. | ||
#=========================================================================== | ||
# ESAPI Logging | ||
# Set the application name if these logs are combined with other applications | ||
Logger.ApplicationName=ESAPI-Shim-Test | ||
# If you use an HTML log viewer that does not properly HTML escape log data, you can set LogEncodingRequired to true | ||
Logger.LogEncodingRequired=false | ||
# Determines whether ESAPI should log the application name. This might be clutter in some single-server/single-app environments. | ||
Logger.LogApplicationName=true | ||
# Determines whether ESAPI should log the server IP and port. This might be clutter in some single-server environments. | ||
Logger.LogServerIP=false | ||
# LogFileName, the name of the logging file. Provide a full directory path (e.g., C:\\ESAPI\\ESAPI_logging_file) if you | ||
# want to place it in a specific directory. | ||
#Logger.LogFileName=ESAPI_logging_file | ||
# MaxLogFileSize, the max size (in bytes) of a single log file before it cuts over to a new one (default is 10,000,000) | ||
#Logger.MaxLogFileSize=10000000 | ||
# Determines whether ESAPI should log the user info. | ||
Logger.UserInfo=false | ||
# Determines whether ESAPI should log the session id and client IP | ||
Logger.ClientInfo=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
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 | ||
#https://www.logicbig.com/tutorials/core-java-tutorial/logging/customizing-default-format.html |