RE: org.apache.log4j.net.SocketAppender - Help with setLocationIn fo

2002-11-11 Thread Mark Womack
In the case where you don't get LocationInfo, you still get a stack trace but just no line number information? Then the -g option affecting the LocationInfo would make sense. -Mark > -Original Message- > From: Nicholas Orr [mailto:Nicholas.Orr@;mim.com.au] > Sent: Monday, November 11, 20

RE: org.apache.log4j.net.SocketAppender - Help with setLocationIn fo

2002-11-11 Thread Nicholas Orr
Well there must be difference between the way 1.4 & 1.3 compile classes by default. Ie 1.4 automatically adds -g to javac. -Original Message- From: Ceki Gülcü [mailto:ceki@;qos.ch] Sent: Friday, 8 November 2002 6:20 PM To: Log4J Users List Subject: RE: org.apache.log4j.net.SocketAppender

RE: log4j logging config for a struts app - seeing struts msgs

2002-11-11 Thread Dave Geise
Robert, log4j folks, I'm a newbie who has been lurking this discussion group for some time. Please forgive my ignorance, but I can't seem to get the topic (classname) filter in my log4j.xml file to work properly. Could someone help me by pointing out how to get the same expression into the XML fo

log4j logging config for a struts app - seeing struts msgs

2002-11-11 Thread Kevin . Hooke
Robert - thats exactly what I was looking for, thanks for your help! Kevin Date: Mon, 11 Nov 2002 13:44:43 -0600 From: Robert <[EMAIL PROTECTED]> Subject: log4j logging config for a struts app - seeing struts msgs Content-Type: text/plain; charset=us-ascii; format=flowed Try adding something a

TestClient I used for the missing messages

2002-11-11 Thread Sharan Venugopal
Following is the TestClient code, which helped me simulate the Log message missing scenario. package com.indus.insite.util.Logger.client; import com.indus.insite.util.Logger.LogService; import com.indus.insite.util.Logger.LogServiceFactory; public class TestLogger { public TestLogger() {

RE: Another Query

2002-11-11 Thread Jung, Eric (Contractor)
Please post your TestClient code. -Original Message- From: Sharan Venugopal [mailto:sha_r112@;yahoo.com] Sent: Monday, November 11, 2002 2:44 PM To: [EMAIL PROTECTED] Subject: Another Query I use the following properties, log4j.appender.file.BufferSize=1000 log4j.appender.file.BufferedI

Another Query

2002-11-11 Thread Sharan Venugopal
I use the following properties, log4j.appender.file.BufferSize=1000 log4j.appender.file.BufferedIO=true log4j.appender.file.ImmediateFlush=true But when I use these, some of the logs are missed out. And if I comment these out. Everything gets printed. I have a TestClient, which logs in a for loop

log4j logging config for a struts app - seeing struts msgs

2002-11-11 Thread Kevin . Hooke
Hi - I am using Commons Logging/log4j in my struts app. When I added my commons-logging.properties and log4j.properties to the classpath in my struts webapp it enabled a huge amount of logging within the Struts framework (ie I see loads of INFO and DEBUG messages from Struts framework classes in a

Small Query for Starters

2002-11-11 Thread Sharan Venugopal
Hey, Just started using Log4j for one of our projects. Looks very impressive. Have a small query (as of now). We intend on using RollingFileAppender, so that the Log Rolls over once the File size is reached. But can we specify the file name in such a way that it makes more sense. Right now, if the

Re: Embedding config data in existing XML

2002-11-11 Thread Ceki Gülcü
Try new DOMConfigurator().doConfigure(Element element, LoggerRepository repository) where element should be the log4j:configuration element from your config file and repository can be LogManager.getLoggerRepository(). HTH, At 05:49 12.11.2002 +1100, John C. Turnbull wrote: We have an existing

Embedding config data in existing XML

2002-11-11 Thread John C. Turnbull
We have an existing XML configuration file for our product and would like to have log4j access its configuration parameters from there too instead of from a separate file. Is this possible? What do I need to do? -JT -- To unsubscribe, e-mail:

Re: SMTPAppender for prim. and sec. Mail-Servers

2002-11-11 Thread Ricardo Moral
No... There is no way you can check if there was an error during the delivery of the mail. One way could be to set a Error Handler to the appender to receive a notification of the error, but if there is an error during the mail delivery the code that handles the error in the SMTP Appender class doe

RE: Basic Doubt in log4j

2002-11-11 Thread Thomas Muller
You find a short introduction to Log4j here: http://jakarta.apache.org/log4j/docs/manual.html A commercial manual can be found here: http://www.flashline.com/components/view.jsp?prodid=4702&affiliateid=657173 Also, you should peruse the javadoc of the vital classes in Log4j, such as Logger, XMLCo

SMTPAppender for prim. and sec. Mail-Servers

2002-11-11 Thread DBade
Hi, in case an error occurs in my Application an eMail should be generated and sent to administrator. In the unlikely case that our primary mail server cannot be reached, the mail should be sent via our backup-mailserver. But if log4J cannot reach the primary one an error is thrown, but this error

XMLLayout/Chainsaw

2002-11-11 Thread Graham Mead
Hi, I'm trying to open a log file via Chainsaw which has been written to via the XMLLayout Appender As per the Javadoc, I have created an xml file with the following entries ]> http://jakarta.apache.org/log4j/";> &data; If I attempt to open this with Chainsaw I get a "Error parsing file - nu

Basic Doubt in log4j

2002-11-11 Thread GGK Prabhu
Dear Friends I am very New to LOG4J. I am using log4j for the last one week. I used Log4j for generating Log Files using the classes Logger PropertyConfigurator and I use logger.debug("Debug message."); logger.info("Info message"