RollingFileAppender to pick up dynamically logfile name from Logger class name instead of static file name

2005-11-17 Thread Smita Agarwal
Hi, Can someone please help me. I am using RollingFileAppender to log messages to log file. But I don't want to specify the name of the file to log to. Instead I want the appender to pick up the name from the Logger class name. For eg. if Logger.class.getName() returns abc.xyz.apple So i want Appe

RE: RollingFileAppender and DailyFileAppender combo usage

2005-11-17 Thread Philip Denno
Configuration of the existing classes would probably not be possible, however subclassing RollingFileAppender to create your own appender should work. If you reimplement the rollOver method, then when the file reaches 10 MB your class will be called and you could perform the renaming/compression/co

RollingFileAppender and DailyFileAppender combo usage

2005-11-17 Thread Shiva Cheedella
All, We use log4j and our logs volume is generally 200MB of data in a single day, and Presently we use 'RollingFileAppender', as everybody knows after the max files is reached - the old logs are gone Present configuration we have is: log4j.appender.R=org.apache.log4j.RollingFileAp

Custom html layout

2005-11-17 Thread Steve Pruitt
It seems I can solve my custom pattern + html layout dilemma with a custom layout. I extended the log4j HTMLLayout class and overrode the format and getHeader methods. In the getHeader method, I return everything as in the log4j HTMLLayout class header, except I return the different column headi

Eclipse log4j extension plugin not working

2005-11-17 Thread tim hood
I've very successfully used log4j-1.2.12 as a plugin within Eclipse RCP applications. Now I've written a simple new FileAppender that has the time and date in it's file name. I've compiled that into a jar which I've made into an separate Eclipse plugin. However when I run an Eclipse RCP wh

RE: Max backup index and daily rolling

2005-11-17 Thread Steve Pruitt
Ah. Thanks for the explanation. I understand the problem better now. Hey, bottom line... I am tickled to have a logging framework do as much as log4j does. -S On Nov 17, 2005, at 1:29 PM, Steve Pruitt wrote: > I think having the same max backup index setting for daily rolling > files would b

Re: Max backup index and daily rolling

2005-11-17 Thread Rusty Wright
As a workaround/kludge you can run some daily script to remove log files you no longer want. For example, on my unix box I use the following to remove log files older than 60 days: find /var/tmp -name 'waitlistd.log_*' -mtime +60 -exec rm -f {} \; I also use the following to bzip2 compress p

Re: Max backup index and daily rolling

2005-11-17 Thread Curt Arnold
On Nov 17, 2005, at 1:29 PM, Steve Pruitt wrote: I think having the same max backup index setting for daily rolling files would be useful. I would still like to limit the sheer number of log files. I guess I can put it in the suggestion box. Unfortunately, it is not a simple problem. If

Re: Logging failing because the intermediate directories do not exist

2005-11-17 Thread Curt Arnold
See bug http://issues.apache.org/bugzilla/show_bug.cgi?id=9150. FileAppenders in 1.2.12 and the current SVN HEAD both attempt to create directories if the parent directory does not exist. If you'd like to report a bug, please be more specific about what is occurring and the circumstances.

Re: Problem with TRACE level

2005-11-17 Thread Curt Arnold
On Nov 17, 2005, at 10:35 AM, Ju Ar wrote: Threre seems to be a problem when using Logger.trace("") on some pattern conversion characters in opposite to Logger.log (Level.TRACE, "") which works correctly. See http://issues.apache.org/bugzilla/show_bug.cgi?id=36800. The problem should b

Max backup index and daily rolling

2005-11-17 Thread Steve Pruitt
I think having the same max backup index setting for daily rolling files would be useful. I would still like to limit the sheer number of log files. I guess I can put it in the suggestion box. -S - To unsubscribe, e-mail: [EMA

Re: Turkish localization problem

2005-11-17 Thread Ingo Etienne
> --- Ursprüngliche Nachricht --- > Von: "Omer Saritemur" <[EMAIL PROTECTED]> > An: "'Log4J Users List'" > Betreff: Turkish localization problem > Datum: Thu, 17 Nov 2005 18:25:52 +0200 > > Hi, We have a program using log4j for logging but program does not > work and shows an error message "Cann

Problem with TRACE level

2005-11-17 Thread Ju Ar
Threre seems to be a problem when using Logger.trace("") on some pattern conversion characters in opposite to Logger.log(Level.TRACE, "") which works correctly. Those caracters seem to be all location collecting parameters like C, M, L.(I know that they are using a lot of CPU time ... )

Turkish localization problem

2005-11-17 Thread Omer Saritemur
Hi, We have a program using log4j for logging but program does not work and shows an error message "Cannot initialize log file" when we set (Control Panel>Regional Options>Set Default) "System Locale" from English(United States) to Turkish on a MS Windows 2000 Server. We try other languages suc

Re: Logging failing because the intermediate directories do not exist

2005-11-17 Thread James Stauffer
I have never seen a case where a log4j appender creates a directory. Under what circumstances does it create directories? On 11/17/05, Vin Karthik <[EMAIL PROTECTED]> wrote: > There are cases when the appender creates directories and drops the log files > if the directories dont exist..It is hap

RE: ConversionPattern

2005-11-17 Thread Steve Pruitt
Hmm. I tried your appender, but all I got was the message. The date, log name, and level wasn't written out. Not sure whats up with that. To bad there is no way to reformat the html layout, its very useful for all the obvious reasons. This seems like an unfortunate shortcoming to me. -S

Re: Logging failing because the intermediate directories do not exist

2005-11-17 Thread Vin Karthik
There are cases when the appender creates directories and drops the log files if the directories dont exist..It is happening with log4j1.2.12..can you please help me? James Stauffer <[EMAIL PROTECTED]> wrote: The appenders don't create directories. Some people have made appenders that create t

Redirecting System.err to log4j

2005-11-17 Thread Henrik Engert
Hi, This subject has been upp before, but I can not get it to work in our app. We need/want to make sure that runtime exceptions such as NullPointerException etc. should be logged together in our log file that is managed by log4j. I have found some old emails on this mailing list where the suggest