Hi Akila, Yes, you need to restart to see the changes in log4j.properties file. However you can change logging by following [1] where you don't need to restart server.
[1] https://docs.wso2.com/display/ESB490/Setting+Up+Logging On Wed, Feb 24, 2016 at 1:36 PM, Udara Liyanage <ud...@wso2.com> wrote: > Hi Akila, > > Yes, you need to restart to see the changes in log4j.properties file. > However you can change logging by following [1] where you don't need to > restart server. > > [1] https://docs.wso2.com/display/ESB490/Setting+Up+Logging > > On Wed, Feb 24, 2016 at 1:31 PM, Akila Nimantha [IT/EKO/LOITS] < > aki...@lolctech.com> wrote: > >> Hi all, >> >> >> >> Do I need to restart ESB server after changing log4j.properties file??? >> >> >> >> What I want to do is to stop logs in the wso2carbon.log file and create a >> separate log file for a specific proxy service. >> >> >> >> What I did was added below lines to the log4j file, >> >> >> >> log4j.category.SERVICE_LOGGER.TestService =INFO, PROXY_APPENDER >> >> log4j.additivity.SERVICE_LOGGER.TestService=false >> >> log4j.appender.PROXY_APPENDER=org.apache.log4j.DailyRollingFileAppender >> >> >> log4j.appender.PROXY_APPENDER.File=${carbon.home}/repository/logs/${instance.log}/TestService${instance.log}.log >> >> log4j.appender.PROXY_APPENDER.Append=true >> >> log4j.appender.PROXY_APPENDER.layout=org.apache.log4j.PatternLayout >> >> log4j.appender.PROXY_APPENDER.layout.ConversionPattern=%d{HH:mm:ss,SSS} >> [%X{ip}-%X{host}] [%t] %5p %c{1} %m% >> >> >> >> Regards, >> >> Akila Rathnayake >> >> >> >> This message (including any attachments) is intended only for the use of >> the individual or entity to which it is addressed and may contain >> information that is non-public, proprietary, privileged, confidential, and >> exempt from disclosure under applicable law or may constitute as attorney >> work product. If you are not the intended recipient, you are hereby >> notified that any use, dissemination, distribution, or copying of this >> communication is strictly prohibited. If you have received this >> communication in error, notify us immediately by telephone and (i) destroy >> this message if a facsimile or (ii) delete this message immediately if this >> is an electronic communication. Thank you. >> >> _______________________________________________ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > > Udara Liyanage > Software Engineer > WSO2, Inc.: http://wso2.com > lean. enterprise. middleware > > web: http://udaraliyanage.wordpress.com > phone: +94 71 443 6897 > -- Udara Liyanage Software Engineer WSO2, Inc.: http://wso2.com lean. enterprise. middleware web: http://udaraliyanage.wordpress.com phone: +94 71 443 6897
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev