Re: How do I do to change the properties file for log4j intoanother directory?

2003-11-05 Thread Rishikesh Tembe
use PropertyConfigurator.configure() -Rishi On Wed, 05 Nov 2003 11:29:14 +1100, "Tuan Jean Tee" <[EMAIL PROTECTED]> said: > I am using the Log Tag Library 1.0 from Jakarta Project. > > In the Installation document, it suggest that in order to initialize > Log4j automatically, the log4j.propert

jog4j error in jsp?

2003-10-24 Thread Rishikesh Tembe
Hi, I had sent this to the Tomcat list, but it seems to be more of a jog4j issue. So trying my luck here :) Can anyone shed some light as to why I get the following error when I try to access the JSP.. javax.servlet.ServletException: org/apache/log4j/Category at org.apache.jasper.runtime.PageCon

Re: log4j:ERROR No appenders could be found for category

2003-10-08 Thread Rishikesh Tembe
AFAIK Category has been deprecated and replaced by Logger.. I don't know if it still works though.. According to the javadocs, there is no reason to use or refer to Category :) You can find more information in the short manual and the javadocs. What should work is something like log4j.rootLogger=D

Re: dumb newbie question?

2003-10-01 Thread Rishikesh Tembe
oof.. my bad :) it works now! thanks, Rishi On Wed, 01 Oct 2003 20:25:56 +0200, "Ceki Gülcü" <[EMAIL PROTECTED]> said: > > Not environment variables, system properties! > > System properties are Java specific. > > Try ${catalina.home}/... -- Rishikesh T

Re: dumb newbie question?

2003-10-01 Thread Rishikesh Tembe
apps/myapp/WEB-INF/log > > Just to make sure to use the right variable name. -- Rishikesh Tembe [EMAIL PROTECTED] -- http://www.fastmail.fm - Sent 0.02 seconds ago - To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

dumb newbie question?

2003-10-01 Thread Rishikesh Tembe
of Tomcat? I have tried various options but none seem to work. thanks, Rishi -- Rishikesh Tembe [EMAIL PROTECTED] -- http://www.fastmail.fm - Access your email from home and the web - To unsubscribe, e-mail: [EMAIL

conditional second appender

2003-09-08 Thread Rishikesh Tembe
Hi, Is there a way for me to add a conditional second appender? I want to log my data to another log, in addition to the regular log, only when a certain condition is true. I realize I could programatically add an appender when the condition is true. But is that my only option? thanks, Rishi ==

RE: duplicate logging?

2003-08-29 Thread Rishikesh Tembe
It did work a treat! thanks... That gave me better insight into log4j. Basically, we can - configure it programatically through the API - OR use the props file Right? And I was doing both, which was the source of the problem :) -Rishi = _

RE: duplicate logging?

2003-08-28 Thread Rishikesh Tembe
-log4j.properties- log4j.rootLogger=INFO, d1 log4j.additivity.com.sap.EventThread=false log4j.appender.d1=org.apache.log4j.FileAppender log4j.appender.d1.File=threads.log log4j.appender.d1.layout=org.apache.log4j.PatternLayout log4j.appender.d1.layout.Conv

RE: duplicate logging?

2003-08-28 Thread Rishikesh Tembe
each case I want the logging to stop and not go higher up the heirarchy. Is this right? I still get the same result though.. one line all be itself and the other line following the pattern I specify.. thanks, Rishi --- Paul Smith <[EMAIL PROTECTED]> wrote: > On Thu, 2003-08-28 at 06:32,

RE: duplicate logging?

2003-08-27 Thread Rishikesh Tembe
Is this how its done? log4j.rootLogger.additivity=false I tried this, but I still get the same result! -Rishi. --- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote: > > Howdy, > It should. Set additivity=false for the root logger and see what > happens. > > Yoav Shapira > Millennium ChemInformatic

RE: duplicate logging?

2003-08-27 Thread Rishikesh Tembe
How are you configuring log4j? > > Yoav Shapira > Millennium ChemInformatics > > > >-Original Message- > >From: Rishikesh Tembe [mailto:[EMAIL PROTECTED] > >Sent: Wednesday, August 27, 2003 2:43 PM > >To: Log4J Users List > >Subject: duplicate loggin

duplicate logging?

2003-08-27 Thread Rishikesh Tembe
Hi all, If in my code I have logger.info("AIN: Received 'ReadEvent' from Thread1 "); why do I get the following in my log file? AIN: Received 'ReadEvent' from Thread1 2003-08-27 11:29:08,463 [1] : AIN: Received 'ReadEvent' from Thread1 I am using PatternLayout with the pattern as %d [%t] : %m%n

Re: org/apache/log4j/Category problem

2003-08-27 Thread Rishikesh Tembe
Hi Thanks Phil and Jacob for your input. The problem was due to the existence of multiple versions of the jog4j.jar file. After I cleaned everything up, put the jar in WEB-INF/lib and the props file in WEB-INF/classes, everything worked! Has the format of the XML/props file been specfied anywhe

org/apache/log4j/Category problem

2003-08-27 Thread Rishikesh Tembe
Hi all, I have a servlet running in Tomcat, which I have setup to do logging via log4j. However, I get the foll. error when I try to run my app: java.lang.NoClassDefFoundError: org/apache/log4j/Category I have the jog4j-1.2.8.jar file in my classpath. I have also done: PropertyConfigurator.con