chainsaw v2

2003-12-08 Thread Ulrich . Kleeberger
hi paul and scott, is it possible to implement a dialog to confirm that the user wants to exit der chainsaw v2 app (perhaps an JOptionPane)? servus uli - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

improving PropertyConfigurator.configureAndWatch

2003-12-08 Thread ROQUES Arnaud - NTR ( [EMAIL PROTECTED] )
Hi! log4j is great, but I think that PropertyConfigurator.configureAndWatch(String configFilename) is not good enough for dynamic modification, as you have to wait until the delay so that your modification are taken into account. So I imagine a solution: to put a *very* little FTP server in the

RE: improving PropertyConfigurator.configureAndWatch

2003-12-08 Thread Singh, Abhishek (ODC - Satyam)
hi roques, when using the configureAndWatch( String configFilename, long delay) the required delay can be set instead of going for the default delay. what do u say? --abhishek -Original Message- From: ROQUES Arnaud - NTR ( [EMAIL PROTECTED] ) [SMTP:[EMAIL PROTECTED] Sent:

Re: improving PropertyConfigurator.configureAndWatch

2003-12-08 Thread Ceki Gülcü
I think that Mark will find this fascinating. I sure do. At 03:00 PM 12/8/2003 +0100, ROQUES Arnaud - NTR ( [EMAIL PROTECTED] ) wrote: Hi! log4j is great, but I think that PropertyConfigurator.configureAndWatch(String configFilename) is not good enough for dynamic modification, as you have to

RE: improving PropertyConfigurator.configureAndWatch

2003-12-08 Thread ROQUES Arnaud - NTR ( [EMAIL PROTECTED] )
Hi, Of course, it is possible to reduce the delay, but setting it to 1 second for example will decrease perfs... And even 10 seconds, which is quite a short time, is too long when you want your modification *now*! Regards, Arnaud. -Message d'origine- De : Singh, Abhishek (ODC -

Having 2 loggers log to the same file...

2003-12-08 Thread Alan Brown
I'd like to have 2 separate parts of my code log to the same file because they share functionality. However I'm getting a class cast exception when I specify the following in my log config file... log4j.logger.opsx.server.db = DEBUG, A3 log4j.additivity.opsx.server.db = false

Re: Having 2 loggers log to the same file...

2003-12-08 Thread Ceki Gülcü
Can you provide the exception? At 11:33 AM 12/8/2003 -0800, Alan Brown wrote: I'd like to have 2 separate parts of my code log to the same file because they share functionality. However I'm getting a class cast exception when I specify the following in my log config file...

Re: I am not getting stack trace from logger.error(error,e)?

2003-12-08 Thread struts
I am also getting the similiar problem. Just I was able to see the stack trace in the console, but in the database, I can just see the error message without stack trace. Attached is my log4j.xml file. Anybody knows why? Thanks. Song Robert Augustyn [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: chainsaw v2

2003-12-08 Thread Paul Smith
On Tue, 2003-12-09 at 00:54, [EMAIL PROTECTED] wrote: hi paul and scott, is it possible to implement a dialog to confirm that the user wants to exit der chainsaw v2 app (perhaps an JOptionPane)? It's certainly possible, we elected to not bother with this as it is generally infrequent that a

Re: I am not getting stack trace from logger.error(error,e)?

2003-12-08 Thread Paul Smith
Depends how you log your stacktrace. If you log like this: private static final Logger LOG = Logger.getLogger(.); ... try { } catch(Exception e) { LOG.error(e); } Then you WILL only get the error message without the rest of the stack trace. The reason is that the exception is going

Re: I am not getting stack trace from logger.error(error,e)?

2003-12-08 Thread Paul Smith
D'oh... I am assuming from the subject line that you are already doing this. Perhaps I should have paid more attention. Sorry for the waste of bandwidth. I'll now go and make my first coffee of the day to minimise the risk of my foot getting anywhere near my mouth again. cheers, Paul On Tue,

RE: Having 2 loggers log to the same file...

2003-12-08 Thread Alan Brown
I certainly can... java.lang.ExceptionInInitializerError: java.lang.ClassCastException: org.apache.log4j.Logger at opsx.server.dac.OpsTransaction.clinit(OpsTransaction.java:20) at opsx.server.kernel.manager.OpsTransactionManager.createTransaction(OpsTransactionManager.java:37)

Chainsaw

2003-12-08 Thread eugene akerman
Hi Scott, Hi Paul So I am looking at chainsaw and it looks great. I was using LogFactor until now but I feel I should go with Chainsaw. Is it possible to get an historic point of view on Chainsaw. For example Why did you guys decide to work on chainsaw as opposed to logFactor ? Thank you for

Re: Chainsaw

2003-12-08 Thread Paul Smith
On Tue, 2003-12-09 at 08:49, eugene akerman wrote: Hi Scott, Hi Paul So I am looking at chainsaw and it looks great. I was using LogFactor until now but I feel I should go with Chainsaw. Is it possible to get an historic point of view on Chainsaw. For example Why did you guys decide to work

Re: I am not getting stack trace from logger.error(error,e)?

2003-12-08 Thread struts
In the LoggEvent class, there are two methods, one is getRenderedMessage(), another is getThrowableInformation(). My understand is that getRenderedMessage() return log message and getThrowableInformation() returns stack trace. My understand is that based on my pattern, there is a '%.300m' in

RE: Chainsaw

2003-12-08 Thread Scott Deboy
I wanted a log analysis tool that provided more powerful features than LogFactor 5 or Chainsaw currently supported (regular-expression based color and display filters, JTabbedPane-based panels that could be docked/undocked). So I started developing the tool, taking advantage of the original

Can we control the logging level to class level instead of package level?

2003-12-08 Thread Song
Hi, Can I do something like this : For specific class in certain package, don't log the event using specific appender while allowing other classes in the same package to do that? Thanks. Song - To unsubscribe, e-mail:

RE: Can we control the logging level to class level instead of package level?

2003-12-08 Thread Scott Heaberlin
Certainly - you could define a logger with the name of the class itself, then effectively squelch it: via DOMConfigurator: logger name=com.mycompany.myproduct.MyClass additivity=false level value=FATAL/ !-- I believe you can also specify NONE -- /logger logger name=com.mycompany.myproduct

Re: Can we control the logging level to class level instead of package level?

2003-12-08 Thread Song
Scott Heaberlin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Certainly - you could define a logger with the name of the class itself, then effectively squelch it: via DOMConfigurator: logger name=com.mycompany.myproduct.MyClass additivity=false level value=FATAL/ !-- I

Re: Can we control the logging level to class level instead of package level?

2003-12-08 Thread Song
It seems that root config will override the logger config, is this true? Give the following configuration, I still see error event from EventLoggerSessionEJB logged into database. But if I change the logging level from 'INFO' to 'FATAL', the event will not be logged. Here is part of my log4j

Re: Can we control the logging level to class level instead of package level?

2003-12-08 Thread Paul Smith
you'll need to switch additivity off for the logger you want disabled, otherwise the LoggingEvent gets passed up the logger hierarchy to the root logger The short manual has info on this: http://jakarta.apache.org/log4j/docs/manual.html (see the bit on additivity) But when you get Ceki's book,

Re: Hi! This is the ezmlm program. I'm managing the

2003-12-08 Thread smarterchild
Your BuddyScript Server is not connected to BSCS! For instructions, see http://bscs.buddyscript.com/smarterchild/ Build your own SmarterChild! Download BuddyScript SDK for FREE today at http://buddyscript.com/. - To

Antwort: Re: chainsaw v2

2003-12-08 Thread Ulrich . Kleeberger
hi paul, sometimes because of the lack of coffee i hit accidently the cross of the right upper corner of the window. so i thought it would be nice to be asked if i want to exit. the suggestion with the global settings would be a good thing. ciao uli