Can we change this so that the log4j.properties file is read from the classpath? If we can do that, in an embedded app server deployment, we can simply put the log4j.properties file into the Carbon webapp. Of course, in most cases, it is the log4j config from the relevant app server that will take effect and not the carbon log4j.properties file. But log4j.properties is not included by default in Tomcat. In the standalone distro, we can still continue to have the log4j file in the conf dir and add the conf dir to the classpath.
Thanks Azeez [EMAIL PROTECTED] wrote: > Author: sumedha > Date: Mon Nov 17 21:19:38 2008 > New Revision: 24107 > URL: http://wso2.org/svn/browse/wso2?view=rev&revision=24107 > > Log: > log4j.properties is read from CARBON_HOME/conf > > Modified: > trunk/wsas/java/carbon/distribution/bin.xml > trunk/wsas/java/carbon/distribution/pom.xml > > Modified: trunk/wsas/java/carbon/distribution/bin.xml > URL: > http://wso2.org/svn/browse/wso2/trunk/wsas/java/carbon/distribution/bin.xml?rev=24107&r1=24106&r2=24107&view=diff > ============================================================================== > --- trunk/wsas/java/carbon/distribution/bin.xml (original) > +++ trunk/wsas/java/carbon/distribution/bin.xml Mon Nov 17 21:19:38 2008 > @@ -92,7 +92,9 @@ > > <include>org.wso2.carbon:org.wso2.carbon.logging.service:jar</include> > > <include>org.wso2.carbon:org.wso2.carbon.logging.admin.ui:jar</include> > > <include>org.wso2.carbon:org.wso2.carbon.logging.view.ui:jar</include> > +<!-- log4j.xml is read from conf folder > > <include>org.wso2.carbon:org.wso2.carbon.logging.ext:jar</include> > +--> > > <include>org.wso2.carbon:org.wso2.carbon.throttle:jar</include> > > <include>org.wso2.carbon:org.wso2.carbon.throttle.ui:jar</include> > > <include>org.wso2.carbon:org.wso2.carbon.caching:jar</include> > > Modified: trunk/wsas/java/carbon/distribution/pom.xml > URL: > http://wso2.org/svn/browse/wso2/trunk/wsas/java/carbon/distribution/pom.xml?rev=24107&r1=24106&r2=24107&view=diff > ============================================================================== > --- trunk/wsas/java/carbon/distribution/pom.xml (original) > +++ trunk/wsas/java/carbon/distribution/pom.xml Mon Nov 17 21:19:38 2008 > @@ -131,13 +131,13 @@ > <artifactId>org.wso2.carbon.logging.view.ui</artifactId> > <version>SNAPSHOT</version> > </dependency> > - > +<!-- > <dependency> > <groupId>org.wso2.carbon</groupId> > <artifactId>org.wso2.carbon.logging.ext</artifactId> > <version>SNAPSHOT</version> > </dependency> > - > +--> > <dependency> > <groupId>org.wso2.carbon</groupId> > <artifactId>org.wso2.carbon.throttle</artifactId> > > _______________________________________________ > Wsas-java-dev mailing list > [email protected] > http://mailman.wso2.org/cgi-bin/mailman/listinfo/wsas-java-dev >
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Wsas-java-dev mailing list [email protected] http://mailman.wso2.org/cgi-bin/mailman/listinfo/wsas-java-dev
