Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Niranjan-K opened this issue May 24, 2017 · 0 comments

Comments

@Niranjan-K
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant