Converting log4j.xml to log4j.properties!!

2005-02-16 Thread Ramkumar Yadav K
Hi, I need to convert the log4j.xml to log4j.properties file. Bcoz we are integrating a separe logging application to our project. Following is the part of my log4j.xml. Any ideas how to do this?. thanks, Ramkumar ---

Log4j 1.3 XMLDecoder.java bug

2005-02-16 Thread Evans Mark-PT1167
Background: I was losing spaces in messages when using the XMLSocketReceiver. I tracked it down to the XMLDecoder. The decodeEvents(String document) method of XMLDecoder.java in Log4j 1.3 has a bug. The first thing this method does is to trim() the given decode buffer. However, that buffer

RE: using properties inside log4j configs

2005-02-16 Thread OOMS DIRK
Jake, Sushil, Thanks for your replies. I tried it again and now it works. I must have overlooked something. dirk > -Original Message- > From: Sushil Sureka [mailto:[EMAIL PROTECTED] > Sent: woensdag 16 februari 2005 17:28 > To: Log4J Users List > Subject: Re: using properties inside log

Re: JCL+Tomcat+Log4j related problems [Was: Debugging]

2005-02-16 Thread James Stauffer
More info: I changed the Config servlet to write a few logs with logger.debug and logger.error and that info gets to the files but not anything besides that. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

Re: using properties inside log4j configs

2005-02-16 Thread Sushil Sureka
Actually I am using the system property and it works for me. Also I am using the same syntax ${<>} as you do. Are you sure your property is set? Also turning on the log4j debug flag might help. Sushil On Wed, 16 Feb 2005 17:17:01 +0100, OOMS DIRK <[EMAIL PROTECTED]> wrote: > Hello, > > I would

Re: using properties inside log4j configs

2005-02-16 Thread Jacob Kjome
When you say "several processes", do you mean separate VM's? If so, then providing a system propery before configuration should work just fine in your case. Please clarify. Jake Quoting OOMS DIRK <[EMAIL PROTECTED]>: > Hello, > > I would like to have several processes use the same log4j.xml, b

using properties inside log4j configs

2005-02-16 Thread OOMS DIRK
Hello, I would like to have several processes use the same log4j.xml, but that e.g. the name of the log file to which they output is slightly different. I tried to achieve this by putting a System Property "processName" into the description of a FileAppender in log4j.xml I also tried to set an

RE: SMTPAppender configuration

2005-02-16 Thread BERNARD NOEL
In the javadoc, you can read : " The default constructor will instantiate the appender with a TriggeringEventEvaluator that will trigger on events with level ERROR or higher." I suppose the default constructor is used. So try again with an ERROR log and you should get your email. Hope this will

RE: SMTPAppender configuration

2005-02-16 Thread DE BENEDICTIS DAVIDE
> From: Bradley, Todd [mailto:[EMAIL PROTECTED] > Yes, that's basically it. A logging event is a Java object > that contains that text message ("test log") and a Level > (DEBUG, in this case) and a few other useful things, such as > a timestamp. > Thank you, I had some doubt reading about

RE: SMTPAppender configuration

2005-02-16 Thread Bradley, Todd
> Reading the javadoc for the smtp appender and its buffer size > I have a doubt, what is exactly a logging event? > Just this? > > Logger.debug("test log"); Yes, that's basically it. A logging event is a Java object that contains that text message ("test log") and a Level (DEBUG, in this case

Re: JCL+Tomcat+Log4j related problems [Was: Debugging]

2005-02-16 Thread James Stauffer
Could the problem be that I called LogLog.debug before configure? public class ConfigLog4jServlet extends HttpServlet { public void init() { String prefix = getServletContext().getRealPath("/"); String file = getInitParameter("log4j-init-file"); String fullPath = pref

RE: JoranConfigurator problem

2005-02-16 Thread Arthur Brown
Hi Dirk, thank you, now it's OK. may be it make sence to define a new method: doReconfigure Ciao Arthur > It will be solved if you call resetConfiguration() on your repository > before > calling doConfigure() > > dirk > > > -Original Message- > > From: Arthur Brown [mailto:[EMAIL PROT

Re: ConsoleAppender and Tomcat

2005-02-16 Thread Paul Smith
this is beginning to be more of a Tomcat question, but, what the hey. in TOMCAT_HOME/bin: ./catalina.sh run (note it's not "start", rather it's "run", this runs tomcat 'inline' in the console window, you'll see anything that would go into catalina.out go to the console window you issued the comma

SMTPAppender configuration

2005-02-16 Thread DE BENEDICTIS DAVIDE
Hi, A simple question :-) I'm using log4J 1.2.8 and I'm adding an smtp appender to a working application. I'm not able to send any mail and I'm not getting any exception. I tried with a simple program using the java mail api with the same parameters in my appender and everything works. This is a

RE: JoranConfigurator problem (output is duplicated after reconfi gure)

2005-02-16 Thread OOMS DIRK
It will be solved if you call resetConfiguration() on your repository before calling doConfigure() dirk > -Original Message- > From: Arthur Brown [mailto:[EMAIL PROTECTED] > Sent: woensdag 16 februari 2005 11:56 > To: log4j-user@logging.apache.org > Subject: JoranConfigurator problem (ou

JoranConfigurator problem (output is duplicated after reconfigure)

2005-02-16 Thread Arthur Brown
Hello, I'm using log4j version logging-log4j-1.3alpha-6. If I'm trying to reconfigure JoranConfigurator then the output is duplicated. Every time during doConfigure is called the appender is added to logger. So after 10 time doConfigure the output appear 10 time. I found a message from Marc on n