Re: Reading config.xml from jarfile

2005-06-20 Thread Eric Pieters
Curt Arnold wrote: On Jun 20, 2005, at 7:44 PM, Eric Pieters wrote: Hi, Is there somebody out there which can provide an example of how I can load a XML config file from a jar? The idea is to add i.e. appl.xml to a jar and call DOMConfigurator.configure("appl.xml") within the application.

Re: how do i delete log files

2005-06-20 Thread Qian Wang
Thanks for that. What if the files reached the max number of the configured value? Is there a way I to delete the files so the hard disk won't get full? I am using windows system, and I need to keep the logs for sometime for late use. --- Curt Arnold <[EMAIL PROTECTED]> wrote: > On a Unix-like

RE: build-chainsaw

2005-06-20 Thread Scott Deboy
Use the CVS HEAD version of install-chainsaw.xml. Save this file to disk: http://cvs.apache.org/viewcvs.cgi/*checkout*/logging-log4j/src/xdocs/install-chainsaw.xml?rev=1.5 And run ant: ant -f install-chainsaw.xml Then, follow the instructions provided when the ant script completes (compile lo

build-chainsaw

2005-06-20 Thread Tan Kah Siong
Hi, i am trying to compile a build for chainsaw. but the ant build reported, [ant] BUILD FAILED: build-chainsaw.xml (System cannot find te file specified) I am currently using the source from logging-log4j-1.3alpha-6.zip where can i find the build-chainsaw.xml or can anyone guide me into building

Re: Reading config.xml from jarfile

2005-06-20 Thread Curt Arnold
On Jun 20, 2005, at 7:44 PM, Eric Pieters wrote: Hi, Is there somebody out there which can provide an example of how I can load a XML config file from a jar? The idea is to add i.e. appl.xml to a jar and call DOMConfigurator.configure("appl.xml") within the application. I would like to h

Re: how do i delete log files

2005-06-20 Thread Curt Arnold
On a Unix-like platform, you can just write your log files to the / tmp directory which will be deleted on the next restart. You can use "${java.io.tmpdir}" in a configuration file to specify that in a platform-independent manner, but I do not believe that temporary directories get deleted

Reading config.xml from jarfile

2005-06-20 Thread Eric Pieters
Hi, Is there somebody out there which can provide an example of how I can load a XML config file from a jar? The idea is to add i.e. appl.xml to a jar and call DOMConfigurator.configure("appl.xml") within the application. I would like to hide part of the configuration from the end-users to a

how do i delete log files

2005-06-20 Thread Qian Wang
how do i delete log files automatically? thank you all very much. Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com

Using UDPReceiver under 1.3 alpha

2005-06-20 Thread illumine
I'm trying to use UDPAppenders and UDPReceivers in 1.3(alpha). I don't have a problem configuring the appenders, and I can see their output via a simple UDP client listening on the port, but I can't figure out how to use the receivers directly (without using Chainsaw.) Can someone direct me

RE: Segregating Loggers to different files at different levels

2005-06-20 Thread Adam Krieg
OK, I have something that works for my purposes. I can use the additivity="true" flag combined with filtering on a subpackage (foo in this example) in order to filter out the log statements.

Re: mutiple logs & levels

2005-06-20 Thread Jacob Kjome
Ok, forget what I said earlier. I'm not sure what I was reading? Must be tired today. Anyway, your XML config below should work. I expect that the logger "com.mee.topup.util" and its children would log at the info level (and above) to the appenderInfo appender. All other loggers outside of th

Re: mutiple logs & levels

2005-06-20 Thread Joseph Sartre
Maybe I did not express my self clearly enough: What I would like is to log only the info level in a seperate log. this is why I have appenderInfo pointing to logInformation.log. The rest of the logs (warn, error, fatal) would be logged in another file called logSystem.log. Basically I have progra

Re: Segregating Loggers to different files at different levels

2005-06-20 Thread James Stauffer
First, I don't think that you can have two lines with the same category. Do you want debug for code outside of the 3rd party library? On 6/20/05, Adam Krieg <[EMAIL PROTECTED]> wrote: > I'm integrating a third party library into our application. This library > produces a lot of output at the

Re: mutiple logs & levels

2005-06-20 Thread Jacob Kjome
You have set up the root logger to log the info level of all loggers to appenderSys. Therefore, the appenderSys log file will get info-level logging. You might try changing the root logger's default level to be something like "warn", or don't add appenderSys to the root logger. Jake Quoting Jo

Segregating Loggers to different files at different levels

2005-06-20 Thread Adam Krieg
I'm integrating a third party library into our application. This library produces a lot of output at the DEBUG level that I'd like NOT to be in our regular application log. However recently we've encountered a problem that we can only diagnose by turning on the debug level for this code. I'd lik

Monthly rollover does not rollover at end of month but at different varied periods after it even though timestamp of information in log shows 00:00 has passed.

2005-06-20 Thread conor osullivan
The monthly rollover does not happen at midnight end of month. Even though the logs show that that it has been updated with information after midnight. If i continue to log information evry few seconds it does not rollover. However once i leave for a few minutes ( 8 or so) and return and log mor

mutiple logs & levels

2005-06-20 Thread Joseph Sartre
Is it possible that the logging is in 2 different logs: I am trying to log in 2 ways: - The Info level and only the info level (not warn, error or fatal) will log in a document called logInformation.log - the other levels (warn, error, fatal etc) will log in a ocument called logSystem.log I h

Re: Using with Struts

2005-06-20 Thread Bruno Melloni
You might want to check the version of Tomcat. This issue sounds terribly similar to the one that was in jBoss 4.x before 4.02. If I remember correctly the cause was inherited from the version of Tomcat that jBoss was using. At one point the logs were getting jumbled together into the webapp log