Re: Chaining

2003-10-01 Thread Paul Smith
This is where the NDC would be useful. In Class 2: NDC.push("Class 2"); In Class 1: NDC.push("Class 1"); Then when you are ready to log a message: log.debug("Message"); The NDC entries will be available via the LoggingEvent that is send to the appender, so if you configure an appender to act

Re: Problem with HTMLLayout (log file attached)

2003-10-01 Thread Rajat Sharma
Hi The problem is that closing tags for 'body' and 'html' are being placed in the middle of the file. Therefore, all events logged after that are unformatted. I can't figure out why these tags are coming in. thanks Rajat. Ceki Gülcü <[EMAIL PROTECTED]> wrote: The file did not go through.

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 Tembe [EMAIL PROTECTED] -- http:/

Re: dumb newbie question?

2003-10-01 Thread Ceki Gülcü
Not environment variables, system properties! System properties are Java specific. Try ${catalina.home}/... At 10:16 AM 10/1/2003 -0800, you wrote: First off, I am under Windows2000. Is what you have said platform-independent? I have system variable CATALINA_HOME=C:\Tomcat4.1 In log4j.properties

Re: dumb newbie question?

2003-10-01 Thread Rishikesh Tembe
First off, I am under Windows2000. Is what you have said platform-independent? I have system variable CATALINA_HOME=C:\Tomcat4.1 In log4j.properties, I specify log4j.appender.LOGMSGS.File=${CATALINA_HOME}/webapps/myapp/WEB-INF/log/messages.log What I get is a FileNotFoundException: \webapps\myapp\

Re: dumb newbie question?

2003-10-01 Thread Ceki Gülcü
There is no such thing as a dumb question. See also below. At 09:39 AM 10/1/2003 -0800, Rishikesh Tembe wrote: Hi group, Is there a way I can specify an absolute path for the File for the DailyRollingFileAppender in my log4j.properties? I want my log files to be located in the CATALINA_HOME/webap

dumb newbie question?

2003-10-01 Thread Rishikesh Tembe
Hi group, Is there a way I can specify an absolute path for the File for the DailyRollingFileAppender in my log4j.properties? I want my log files to be located in the CATALINA_HOME/webapps/myapp/WEB-INF/log directory. How can I specify this destination without tying it down to the actual location

RE: Problem with HTMLLayout (log file attached)

2003-10-01 Thread Shapira, Yoav
Howdy, Chiming it late from the gallery -- you can take your log and try it in the HTML Validator (http://validator.w3.org/). Although that requires a DOCTYPE so you may have to add one manually to your HTML log file before validating. Yoav Shapira Millennium ChemInformatics >-Original M

Re: Problem with HTMLLayout (log file attached)

2003-10-01 Thread Ceki Gülcü
The file did not go through. The log4j-user mailing list filters out certain file types and has a size limit of 100KB. Maybe the table is not properly formatted? Look at the HTML file at the spot where things start to go wrong. At 07:56 AM 10/1/2003 -0700, Rajat Sharma wrote: Hi Sorry about th

Chaining

2003-10-01 Thread David Liles
I just started using log4j and am having trouble trying to figure out how to chain logging messages class 1 makes a call to class 2 I would like to be able to pass the message from class 2 to class 1 where it would ultimately be logged, that way when I review the log file it would show

Re: Problem with HTMLLayout (log file attached)

2003-10-01 Thread Rajat Sharma
Hi   Sorry about that... The log files are 10MB each, so I'm attaching a part of the log file that shows the formatting problem. This problem is occuring in all of the log files (there are 5 separate logs being created). Could this occur due to the fact that I have set the Append value to 'true' a