log4j for python and chainsaw possible?

2006-11-29 Thread Lucie Chan
Hi, I have a library that allows various components written in different programming languages (perl, python, java) to talk to each other, and I'd like to capture the different log messages from each component and display them in a centralized GUI application. I wonder if the following is possib

Re: Log4J System alerts

2006-11-29 Thread James Stauffer
I don't have experience with filters. Check the javadocs and archives. On 11/29/06, garima015 <[EMAIL PROTECTED]> wrote: Can you please give me some more idea on how to create that filter..and how this will be called thanks for ur immediate reply James Stauffer wrote: > > You could probably

Re: Log4J System alerts

2006-11-29 Thread Adrian Sandor
Hi, I don't have much experience, but my approach would be to write a custom appender (used with threshold set to ERROR) that keeps a list of messages, and has a timer that checks every second if there are any errors, sends a system alert (at most one/second, showing the number of errors and the

Re: File Appender in log4j

2006-11-29 Thread ying lcs
I try it, but I get this error " log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender. I put this line in the log4j properties file. log4j.appender.ACCESS.MaxBackupIndex=7 On 11/28/06, Shuh Chang <[EMAIL PROTECTED]> wrote: I think you can set the MaxBackup

Re: Log4J System alerts

2006-11-29 Thread garima015
Can you please give me some more idea on how to create that filter..and how this will be called thanks for ur immediate reply James Stauffer wrote: > > You could probably do that by creating a filter on the appender. > > On 11/29/06, garima015 <[EMAIL PROTECTED]> wrote: >> >> Say if 100 alerts

Re: Log4J System alerts

2006-11-29 Thread garima015
Can you please give me some more idea on how to create the filter on top of that... and how that will be called thanks for ur immediate reply James Stauffer wrote: > > You could probably do that by creating a filter on the appender. > > On 11/29/06, garima015 <[EMAIL PROTECTED]> wrote: >> >>

Re: Log4J System alerts

2006-11-29 Thread garima015
Being more specific...lets say i am generating alert when ever logger.fatal is reached .Now i have 100 transaction per second all got failed due to some single reason.So all 100 transaction will reach that logger.fatal code and all will generate an email corresponding to it.I want to limit that nu

Re: Log4J System alerts

2006-11-29 Thread James Stauffer
You could probably do that by creating a filter on the appender. On 11/29/06, garima015 <[EMAIL PROTECTED]> wrote: Say if 100 alerts are getting raised per second i want to limit them to 10 or some number.As i have to page alert to production team i dont want to send 100 page for some issue in

Re: Log4J System alerts

2006-11-29 Thread garima015
Say if 100 alerts are getting raised per second i want to limit them to 10 or some number.As i have to page alert to production team i dont want to send 100 page for some issue in such a short interval of time. James Stauffer wrote: > > Are you saying that when there are a lot of events you o

Re: Log4J System alerts

2006-11-29 Thread James Stauffer
Are you saying that when there are a lot of events you only want a few events to make to the appender so that you aren't sent so many alerts? On 11/29/06, garima015 <[EMAIL PROTECTED]> wrote: I have a requirement where 100 transactions are fired per second. Current application is using Log4J fo

Log4J System alerts

2006-11-29 Thread garima015
I have a requirement where 100 transactions are fired per second. Current application is using Log4J for generating the System alerts. I got to know that whenever the logger.error is used log4j is being used to generate the alert while logger.error method is used. I want to restrict the number

Re: log4j conversion specifiers and logger names

2006-11-29 Thread James Stauffer
The logger name is the new name for "category" so %c will give the logger name. On 11/29/06, mas <[EMAIL PROTECTED]> wrote: Lets say I'm in an application and I want to specify a in a class logger such as follows: > ... > Logger log = Logger.getLogger("UseCase1"); > ... > Now lets suppo

log4j conversion specifiers and logger names

2006-11-29 Thread maskkkk
Lets say I'm in an application and I want to specify a in a class logger such as follows: > ... > Logger log = Logger.getLogger("UseCase1"); > ... > Now lets suppose I want "UseCase1" to be displayed in the resulting log file next to the log statements from the "UseCase1" logger. Is there an

Re: Shorter thread info, performance question

2006-11-29 Thread James Stauffer
It appears you want to print a specific part of the thread name and that name is set by the application server to be something like "ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'". Is that correct? I don't know of a good solution to that because the part of the name that

Shorter thread info, performance question

2006-11-29 Thread Scott Nesbitt
I would like to have shorter thread information. Right now my pattern is: log4j.appender.logfile.layout.ConversionPattern=%d{ABSOLUTE} %t %-5p %c{1} %x - %m%n which corresponds to: 15:36:36,154 [ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)' DEBUG ReleaseUtil - T

New log file viewer based on SwingX and Glazedlists

2006-11-29 Thread Wim Deblauwe
Hi, I release the first version of my open source project that is based on SwingX and Glazedlists. You can take a look at: http://vigilog.sourceforge.net. It is a log file viewer simular to Chainsaw that allows you to easily filter the loggings to pinpoint the problems. It currently only works w