Re: log two different messages to two different files

2007-12-10 Thread orko
I think you can use Logger.getLogger("longMsg."+this.getClass().getName()) and then in the configuration file you have to do following setup: If it works for the long msg, you can do the same for short msg in the same file. Thanks, -OrkO Beth Hechanova <[EMAIL PROT

log two different messages to two different files

2007-12-10 Thread Beth Hechanova
Hi, I have the concept of a long error message and a short error message in my application. Long error messages get written to one file, and the short messages get written to a different file. Ideally in my application everywhere that needs to log an error message can simply call Logger.getLo

RE: chainsaw view remote log file

2007-12-10 Thread Scott Deboy
1. You can't change the Chainsaw receiver configuration from outside the app (it would be possible to support the log4j.configuration system property, which would help if you were running from a command line or running Chainsaw via web start from a command line with javaws.exe) 2. Should happen au

chainsaw view remote log file

2007-12-10 Thread Jessica Lin
Hello, My web page contains a list of log files stored on the remote server. When the user selects one of the file, the Chainsaw will be launched through web start link, the selected log file will be display inside the tab. My questions are: 1. How to automatically pass in the selec

RE: Question about Log4J and its future...

2007-12-10 Thread Gary Gregory
The log4j release history is available here: http://logging.apache.org/log4j/1.2/changes-report.html Gary Gregory Seagull Software www.seagullsoftware.com > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: Monday, December 10, 2007 2:28 PM > To: log4j-user@

Question about Log4J and its future...

2007-12-10 Thread Srikanth . Jagannath
Hi, I have been looking at using log4j for my project I am impressed with the features that log4j provides me. However I have some questions: 1. What is the roadmap of log4j, I see that there is an experimental version 2.0 in the works when is this going to be available. Also when was 1.2.15 v

RE: expiry of DailyRollingFileAppender old logs

2007-12-10 Thread Michael Erskine
Whoops! > long now = System.currentTimeMillis(); > File[] files = getExpiredLogfiles(fileNameRoot, datePattern, null, > new Date(now + maxage)); That Date should be new Date(now - maxAge) since maxAge is defined as... private static long maxage = 7 * DateUtils

RE: expiry of DailyRollingFileAppender old logs

2007-12-10 Thread Michael Erskine
> From: dirk ooms [mailto:[EMAIL PROTECTED] 10 December 2007 10:53 > your script could just look at the 'last edit' time of the file, without > having to look at the name of the file. That's a good idea Dirk but I'd prefer to stick to the spec (since that's what the customer's acceptance tests wi

Re: expiry of DailyRollingFileAppender old logs

2007-12-10 Thread dirk ooms
Michael, your script could just look at the 'last edit' time of the file, without having to look at the name of the file. dirk On Monday 10 December 2007 11:26, Michael Erskine wrote: > Hi, > I have a requirement to delete logfiles older than a certain number of days > when using a DailyRollin

expiry of DailyRollingFileAppender old logs

2007-12-10 Thread Michael Erskine
Hi, I have a requirement to delete logfiles older than a certain number of days when using a DailyRollingFileAppender. Rather than extend DailyRollingFileAppender I've decided to execute a task from time to time that given the name of the Appender, looks for old logfiles that match the file and da