...
org.wso2.carbon.logging.appenders.CarbonConsoleAppender
org.wso2.carbon.logging.appenders.CarbonDailyRollingFileAppender
See the following topics on this page for details:
Table of Contents | ||||
---|---|---|---|---|
|
Configuring products for log monitoring
...
- Manually editing the
log4j.properties
file. - Configure logging through the management console. This functionality is provided by the following feature in the WSO2 feature repository:
Name : WSO2 Carbon - Logging Management Feature
Identifier : org.wso2.carbon.logging.mgt.feature.groupIf the above feature is not bundled in your product by default, you can install it using the instructions given in the Feature Management section.
Using the management console to configure logging is recommended because all changes made to log4j through the management console persist in the WSO2 Registry. Therefore, those changes will be available after the server restarts and these changes will get priority over what is defined in the actual log4j.properties
file. Also, note that the logging configuration you define using the management console will apply at run time. However, if you modify the log4j.properties
file and restart the server, the earlier log4j configuration that persisted in the registry will be overwritten. There is also an option in the management console to restore the original log4j configuration from the log4j.properties
file.
...
- Through the log files that are stored in the
<PRODUCT_HOME>/repository/logs
folder. This folder contains current logs in a log file with a date stamp. Older logs are archived in thewso2carbon.log
file. - Through the command prompt/shell terminal that opens when you run the "
wso2server.bat
"/"wso2server.sh
" files to start the Carbon server. - Through the advanced monitoring capabilities in WSO2 BAM.
- Through the Management Console. See Monitoring Logs for details.
Logging Management Feature
The possibility to use the management console of your product for log configuration and monitoring is provided by the following feature in the WSO2 feature repository:
This functionality is provided by the following feature in the WSO2 feature repository:
Name : WSO2 Carbon - Logging Management Feature
Identifier : org.wso2.carbon.logging.mgt.feature.group
If the above feature is not bundled in your product by default, you can install it using the instructions given in the Feature Management section.