Christopher, Please find the pasted properties file. I did perform any of the steps that I am supposed if I got to use log4j, but it still create muse(name of my web-app).log in /tmp directory with a message like this in catalina.out. 01 Mar 12:28 Log4JUtils INFO - Log messages will be recorded in /tmp/tomcat7-tomcat7-tmp/muse.log True that I am using log4j not juli in the webapp. This is how I am getting the handle in the class files. public static Log log = LogFactory.getLog(Crossword.class);
This is the log4j.properties file in the WEBINF/classes folder of the webapp. I tried few things like appending the line log4j.logger=debug with no avail. # For the general syntax of property based configuration files see the # documentation of org.apache.log4j.PropertyConfigurator. # The root category uses the appender called A1. Since no priority is # specified, the root category assumes the default priority for root # which is DEBUG in log4j. The root category is the only category that # has a default priority. All other categories need not be assigned a # priority in which case they inherit their priority from the # hierarchy. log4j.rootCategory=INFO, Console log4j.logger.com.opensymphony.xwork2=INFO log4j.logger.freemarker.cache=INFO log4j.logger.org.apache.struts2=INFO log4j.logger.org.apache.xml.security=INFO log4j.logger.org.apache.commons.httpclient=INFO log4j.logger.org.mortbay.log=INFO log4j.logger.net.sf.ehcache=OFF #log4j.logger.com.hp.hpl.jena.tdb.base.block.BlockMgrMapped=ERROR, ROOT # A1 is set to be a LF5Appender which outputs to a swing # logging console. # this is now done programmatically in JSPHelper # log4j.appender.ROOT=org.apache.log4j.RollingFileAppender # log4j.appender.ROOT.encoding=UTF-8 # log4j.appender.ROOT.MaxFileSize=5000KB # log4j.appender.ROOT.File=muse.log # Keep old files around # log4j.appender.ROOT.MaxBackupIndex=2 # log4j.appender.ROOT.layout=org.apache.log4j.PatternLayout # log4j.appender.ROOT.layout.ConversionPattern=%d{dd MMM HH:mm} %c{1} %-5p - %m%n log4j.appender.Console=org.apache.log4j.ConsoleAppender log4j.appender.Console.encoding=UTF-8 log4j.appender.Console.layout=org.apache.log4j.PatternLayout log4j.appender.Console.layout.ConversionPattern=%d{dd MMM HH:mm} %c{1} %-5p - %m%n #log4j.logger.org.apache.jcs=ERROR #log4j.logger.net.fortuna.mstor=ERROR #log4j.logger.fuse=DEBUG #log4j.logger.org.hibernate.SQL=DEBUG #log4j.logger.org.hibernate=DEBUG #log4j.additivity.org.hibernate.SQL=false On Fri, Mar 1, 2013 at 12:32 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Vihari, > > On 2/28/13 8:58 PM, Vihari Piratla wrote: > > @Konstantin Kolinko Sorry I did not observe this, I was talking > > about the global one previously, here is the webapp specific one in > > the attachment that is log4j.properties. > > This list tends to strip attachments from posts. Please re-post with > your configuration file. > > I see you said log4j.properties above... until now, you gave us the > impression that you were using JULI (which is the default: using log4j > with Tomcat at the server-level takes some work). Are you trying to > use log4j or was that a typo? > > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG/MacGPG2 v2.0.17 (Darwin) > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iEYEAREIAAYFAlEwUn4ACgkQ9CaO5/Lv0PDErQCeJ+v9JS5sQPCCMmXJ/iiqihsc > JKgAoKYEaZZvTBji26GjEtGOrXQZsKMw > =yudQ > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- Vihari Piratla. students.iitmandi.ac.in/~p_vihari *"If you can dream it, You can make it"*