Bug Report: Nonwell-formed XML output to log when logging location info

2001-12-02 Thread adi Ekstein
> Hello, > > Im using Log4j to log to a file with the DOMConfigurator (in order to log > to a XML file). > In the configuration file (listed below) im using: param > name="LocationInfo" value="true" > > When performing a log request from a Constractor of a Class (i.e. - > cat.debug("testing 123

RollingFileAppender does not back up the log file.

2001-12-02 Thread Manav Agarwal
Hi, I'm new to this mailing list and relatively new to log4j too. We've want to use the RollingFileAppender to help roll over the log files after every 10MB. Towards this I have set up the properties like this: log4j.rootCategory=debug,com.company.DBManager log4j.category.com.company.DBManager=

Using Log 4 J statementin JUnit

2001-12-02 Thread Thomas SMETS
Hi, I'm using Junit to functionnaly test my classes & composant behavior. I'm willing in the TestCase s to have some logging statements via Log4J. Classes have the typical structure : see @ the bottom. The TestAll class simply adds in its TestSuite, all the tests from the classes in the packa

RE: Using Log 4 J statementin JUnit

2001-12-02 Thread Christopher Berry
Try using a member or local variable instead of a static for log. This fixed the problems I was having... Cheers, -- Chris -Original Message- From: Thomas SMETS [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 02, 2001 7:32 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Using

Re: RollingFileAppender does not back up the log file.

2001-12-02 Thread chenone
Hi, If the log file is over 10M, It can create a backup log file automatically. because you set the backup number is 2(log4j.appender.com.company.DBManager.MaxBackupIndex=2 ), you can save 2 log files as the backup files. In another word, you always get three files in the log directory, one is cu

Re: Using Log 4 J statementin JUnit

2001-12-02 Thread chenone
Hi I don't know how you create a instance of category and how to insert the write log statement in your code.Pls tell me the detail information. B.R. chenyi - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 03, 2001 11:14 AM Subject: RE: Using

Problem in using socketAppender

2001-12-02 Thread Gao Jun
Hi, all, I started to use Log4j a few days ago, it's really cool. But I've met a problem I don't know whether it is a known bug or I've made soem mistake. It's like this: I run a client process, which will output log to the socketServer appender. I run a SocketServer to receive these log