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);

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 ?xml version=1.0 ? !DOCTYPE log4j:eventSet SYSTEM log4j.dtd [!ENTITY data SYSTEM server.log] log4j:eventSet version=1.2

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=4702affiliateid=657173 Also, you should peruse the javadoc of the vital classes in Log4j, such as Logger,

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

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: mailto:log4j-user-unsubscribe;jakarta.apache.org

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

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

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

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

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() {

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

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

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: 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, 2002