multiple webapps logging

2002-07-16 Thread Dmitry Macsema
I have two web applications, is it possible to separate output from each one to its own log file? I created 2 sample web applications, each of them initializes log4j and has log4j.jar in its /lib folder. However, all logging statements get to the most recently configured file. I was adviced to pu

RE: Is there a MDC equivalent of NDC remove ?

2002-07-16 Thread Sonnathi, Venkat Ramana
That is sufficient. I just did not understand how all this was happening just by looking at the MDC code for a few minutes. -Original Message- From: Mark Womack [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16,2002 12:52 PM To: 'Log4J Users List' Subject: RE: Is there a MDC equivalent of

RE: Is there a MDC equivalent of NDC remove ?

2002-07-16 Thread Mark Womack
No. The MDC information will be released when thread exits. Is this not sufficient? -Mark > -Original Message- > From: Sonnathi, Venkat Ramana [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 16, 2002 8:12 AM > To: 'Log4J Users List' > Subject: Is there a MDC equivalent of NDC remove ?

Re: LOG4J Dtd

2002-07-16 Thread Ceki Gülcü
I have tried your JSP file under Tomcat 4.1.7 without problems. Although I have removed the following lines: <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> Please

RE: Daily rollover of log file

2002-07-16 Thread Dirk Wigger
Jens, thks. But where do I add the date pattern ? Replace log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=/abc/logs/appl.log by log4j.appender.R=org.apache.log4j.DailyRollingFileAppender log4j.appender.R.File=/abc/logs/appl.log rgds Dirk -Original Message--

RE: number of Thread are high.

2002-07-16 Thread Mark Womack
This message is more appropriate for the log4j-user email list. Please post any followups to that list. Every call to configureAndWatch() will create a thread. You only want to call the configureAndWatch() method once, in some kind of setup() or static code. You certainly do not want to call i

Re: number of Thread are high.

2002-07-16 Thread Ceki Gülcü
I am sorry but I fail to see your question. What is your question please? By the way, cross-posting is considered impolite. At 16:56 16.07.2002 +0530, you wrote: >I am phasing one problem related to LOG4j if u can solve it then pls reply >me back. > >I am logging error messages for my project

Re: Log4J DTD error

2002-07-16 Thread Ceki Gülcü
Which version of Tomcat are you using? At 15:28 15.07.2002 +0530, you wrote: >Hi Ceki, > I am invoking the Logging from a JSP Page , I am attaching >it alongwith this mail(SampleInputTest.jsp). >I also wanted to know , how do i get the path for the configuration file >within tom

number of Thread are high.

2002-07-16 Thread Shailesh Khare, Noida
I am phasing one problem related to LOG4j if u can solve it then pls reply me back. I am logging error messages for my project using category object. My problem is at the time of load testing number are threads are more the 1000 .In normal case number of thread are 50-60.I might be using log4j

Re: Get All Appenders defined in the config file

2002-07-16 Thread Ceki Gülcü
At 14:50 11.07.2002 +0200, Jens Koch wrote: >Hi, > >I want to get all appenders which are defined in the log4j-configuration >xml file as instances. > >How can I do that? > >I only get the appenders bound to root or other loggers. >I also want to get those which are specified in the xml file but n

Get All Appenders defined in the config file

2002-07-16 Thread Jens Koch
- Forwarded by Jens Koch/FSG/CSC on 16.07.2002 17:38 - Jens Koch

Re: Daily rollover of log file

2002-07-16 Thread Jens Koch
Hi Dirk, use: org.apache.log4j.DailyRollingFileAppender with the date pattern: "'.'-MM-dd " Regards Jens "Dirk Wigger"

Re: Daily rollover of log file

2002-07-16 Thread Craig Smith
Try the DailyRollingFileAppender. http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/DailyRollingFileAppender.html >>> [EMAIL PROTECTED] 07/16/02 10:17AM >>> Hi, I'm looking to roll over my log file on a daily basis (not based on file size) and was wondering how this can be done. I c

Daily rollover of log file

2002-07-16 Thread Dirk Wigger
Hi, I'm looking to roll over my log file on a daily basis (not based on file size) and was wondering how this can be done. I couldn't find any reference on that. Any help out there. My log.cfg file is configured like that: log4j.rootCategory=debug, R log4j.category.Parser=warn log4j.appender.

Is there a MDC equivalent of NDC remove ?

2002-07-16 Thread Sonnathi, Venkat Ramana
Hi Log4j Gurus, Is there an equivalent of NDC.remove() for MDC? Thanks, --Venkat. -- To unsubscribe, e-mail: For additional commands, e-mail:

log4j, xml logging, and multiple renderers per object

2002-07-16 Thread Bill Milbratz
Hello, I'm looking at using log4j 1.2.5 for additional 'application logging' (i.e. logging accessible by our application) as well as 'debug/info/warn/error' logging. I know what I want to do. My question is, can I use log4j, out-of-the-box, to implement this or do I need to extend it or use a

AW: DailyRollingFileAppender & RollingFileAppender don't create backups

2002-07-16 Thread "Grübel, Nicole"
I just changed my configuration of the RollingFileAppernder a little bit ... Now it actually creates 1 backup-file when the max-size is reached. The first one is called "RollingLog4J.log.1", which is fine. But when

Backward compatibility in Loader class

2002-07-16 Thread dhaval . h . udani
BDY.RTF Description: RTF file

DailyRollingFileAppender & RollingFileAppender don't create backups

2002-07-16 Thread "Grübel, Nicole"
Hi! I know, these appenders have already been discussed, but I couldn't find a solution that would work in the archive. I just want to have an appender that rolls every day (DailyFile) and creates/saves 1 log-file (DailyLog4J.log) and 1 backup-file. And I want another appender that rolls when th

Re: Specifying exclusive log file for one category

2002-07-16 Thread Rafael Alvarez
try setting the additivity of log4j.category.com.x.y.a1 and log4j.category.com.x.y.a2 to false. I think is something like: log4j.category.com.x.y.a1.Additivity=false log4j.category.com.x.y.a2.Additivity=false This way the appenders are not inherited, so only the appenders you specify are used.