Is there any recommended approach to configure logback logs for WSO2 products
Niranjan-K opened this issue · comments
We are tried to configure logback logs for wso2 products (i.e IS 5.1.0) using below steps.
- using both log4j-over-slf4j & jcl-over-slf4j bridges (by replacing all the log4j & commons logging .class contained in org.wso2.carbon.logging-4.4.2 by the same contained in the bridges).
- Place logback-classic-1.1.5.jar, logback-core-1.1.5.jar, slf4j-api-1.7.17.jar in WSO2IS-5.1.0\repository\components\dropins\ directory
- Place logger_2.0.0_SNAPSHOT_1.0.0.jar in wso2IS-5.1.0\repository\components\lib\ directory
- Navigate to wso2IS-5.1.0/repository/conf/etc/bundle-config/ and create a folder named ch.qos.logback.classic (sumbolic name of the bundle logback-classic-1.1.2.jar)
- Place the logback.xml file in the created folder
- Start the server
Then this is working.. but this is not recommend approach ( replacing class file approach in step 1).need to create a script (may be maven pom ) a and automation these steps
or is there any recommended approach to configure logback for wso2 products