-
Notifications
You must be signed in to change notification settings - Fork 367
Using ESAPI with SLF4J
Kevin W. Wall edited this page Sep 9, 2020
·
9 revisions
As of ESAPI 2.2.0.0, ESAPI has supported, although some minor bugs may have kept it from being trivially usable.
This wiki page describes 2 configurations:
- SLF4J using Logback
- SLF4J using Log4J 2.x
The remainder of this page assumes you will be using ESAPI 2.2.1.1 and that you already know how to use and configure ESAPI.
Download esapi-2.2.1.1-configuration.jar and unjar the file to extract the ESAPI.properties file.
Place the ESAPI.properties file in a place where it will be picked up by ESAPI. Set the ESAPI property as follows to use SLF4J for logging:
ESAPI.Logger=org.owasp.esapi.logging.slf4j.Slf4JLogFactory
This section is under development; until then see GitHub issue #569 for details.