This repo contains a sample custom authentication handler for API Manager and a Class Mediator for EI to Log with Log4J2.
The steps are common for both samples unless for the places to deploy the bundles but for better clarity they are explained separately within each sample. Refer README files in individual samples for testing.
- Create the Log4J2 uber jar
- Create the custom bundle for the Class Mediator / Custom Handler
- Create the Log4J2 configuration file
- Add the above to the necessary places in the WSO2 product
- Modify the integrator.sh / wso2carbon.sh to add the system property to set the Log4J2 configuration file
- Restart the WSO2 server
- Create an API and test the Class mediator / Custom Handler