wso2 / carbon-commons

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there any recommended approach to configure logback logs for WSO2 products

Niranjan-K opened this issue · comments

commented

We are tried to configure logback logs for wso2 products (i.e IS 5.1.0) using below steps.

  1. 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).
  2. 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
  3. Place logger_2.0.0_SNAPSHOT_1.0.0.jar in wso2IS-5.1.0\repository\components\lib\ directory
  4. 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)
  5. Place the logback.xml file in the created folder
  6. 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

https://wso2.org/jira/projects/CCOMMONS/issues/CCOMMONS-7