Enabling Logs for a Component¶
Follow the instructions given below to enable logs for a specific component in the Micro Integrator.
Note that WSO2 API Manager 3.0.0, 3.1.0, 3.2.0, and 4.0.0 are affected by the Log4j2 zero-day vulnerability, which has been reported to WSO2 on 10th December 2021. You can mitigate this vulnerability in your product by following our instructions and guidelines.
Alternatively, you can directly update the log configurations in the
log4j2.properties file (stored in the
Using the Dashboard¶
- Sign in to the Micro Integrator dashboard.
- Click Log Configs on the left-hand navigator to open the Logging Management window.
Go to the Add Loggers tab and define the new logger.
Logger Name Give a name for the logger. Class Specify the class implementation of the component for which the logger is defined. Log Level Specify the log level.
Using the CLI¶
Download and set up the API Controller.
Use the commands for adding a new logger to the Micro Integrator.
By default, when you enable logs for a component, the logs get printed to the server console and the carbon log file. When there are error logs, these are also printed to the error log file. These log files are stored in the
Once you have defined the new logger:Top