Hi Dulanja, Were you able to solve this issue?
I am trying to use per service logging in ESB. I enabled trace log for my proxy service. I am not getting any trace logs in my log file. It is discussed in [1]. Appreciate if you could share how you solved this issue. 1. [Dev][ESB] Per service logging with ESB Thanks. On Wed, Apr 30, 2014 at 1:17 AM, Dulanja Liyanage <[email protected]> wrote: > Hi All, > > $subject. > > Following are the defaults inside log4j.properties file > > log4j.logger.trace.messages=TRACE,CARBON_TRACE_LOGFILE > # Appender config to CARBON_TRACE_LOGFILE > > log4j.appender.CARBON_TRACE_LOGFILE=org.apache.log4j.DailyRollingFileAppender > > log4j.appender.CARBON_TRACE_LOGFILE.File=${carbon.home}/repository/logs/${instance.log}/wso2carbon-trace-messages${instance.log}.log > log4j.appender.CARBON_TRACE_LOGFILE.Append=true > > log4j.appender.CARBON_TRACE_LOGFILE.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout > log4j.appender.CARBON_TRACE_LOGFILE.layout.ConversionPattern=[%d] %P%5p > {%c} - %x %m {%c}%n > log4j.appender.CARBON_TRACE_LOGFILE.layout.TenantPattern=%U%@%D [%T] [%S] > log4j.appender.CARBON_TRACE_LOGFILE.threshold=TRACE > log4j.additivity.trace.messages=false > > > I have enabled TRACE for the component as following: > > log4j.logger.org.wso2.carbon.identity.application=TRACE > > > From code I'm calling like following: > > if (log.isTraceEnabled()) { > log.trace("Inside handle()"); > } > > > I checked wso2carbon-trace-messages.log, it's empty. However, the DEBUG > logs of log4j.logger.org.wso2.carbon.identity.application are printed in > wso2carbon.log as expected. > > Am I missing something here? Or is TRACE broken? > > Thanks, > Dulanja > > -- > Dulanja Liyanage > WSO2 Inc. > M: +94776764717 > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Rajkumar Rajaratnam Committer & PMC Member, Apache Stratos Software Engineer, WSO2
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
