Are you using log4j-web? Also, are you looking for Tomcat's logs to come from Log4j as well? Because that isn't possible without a JUL adapter (which Log4j 2.1 will have).
On 6 October 2014 04:02, sujatha rdn <sujatha...@wavecrest.gi> wrote: > Yup. > > Herewith attaching the configuration file. > > And also, in my application, I will be accessing in the following way. > > Public class Logger{ > private static final org.slf4j.Logger slfLogger= > LoggerFactory.getLogger("webAnalyticLog"); > private static final org.slf4j.Logger adminSlfLogger= > LoggerFactory.getLogger("adminAnalyticLog"); > > if(info.getServiceType() == ADMIN){ > adminSlfLogger.info(message); > }else{ > slfLogger.info(message); } > } > > -----Original Message----- > From: Harinath Mallepally [mailto:harin...@careerscale.in] > Sent: Monday, October 06, 2014 2:22 PM > To: Log4J Users List > Subject: Re: Issue with configuration status and Rolling Files > > share the configuration file. > > > > Thanks > Harinath Mallepally > harin...@careerscale.in > Careerscale IT Consulting LLP > +91 9391920444 / 040-42100276 > Hyderabad > > On Mon, Oct 6, 2014 at 2:17 PM, sujatha rdn <sujatha...@wavecrest.gi> > wrote: > > > Hi, > > > > > > > > I have migrated to log4j2 with slf4j adapter. But I am facing some > issues. > > > > > > > > 1. When I add configuration status <configuration status=”trace”> I > > don’t see any logs related to log4j in my catalina logs > > > > 2. And also, I have 5 loggers mapped to 5 different rolling files. > > But only 4 files get created in the specified location and in that > > only one files gets updated with the logs. > > > > > > > > Here are some details that you want to know before you suggest me a > > solution. > > > > 1. I am working on servlet 2.5 web application and our container is > > tomcat 7. > > > > 2. I am using slf4j adapter as interface in my application to > access > > log4j2 > > > > > > > > Do please let me know if you need any further details to help me out. > > > > > > > > > > > > Thanks, > > > > Sujatha > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > -- Matt Sicker <boa...@gmail.com>