> 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
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=
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
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
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
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
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