Buffered SMTPAppender?

2004-01-28 Thread Scott Cizarno
Is it possible to mail all log events from a JSP in one email? For example, if i change the threshold to DEBUG all debug events are mailed in one message. Or if i change the threshold to INFO all info events are mailed in one message. I could change the buffer size but this doesnt seem to take

Re: Listening for events

2004-01-28 Thread Paul Smith
> Mind you, I'd really like to be able to say "listen to all events within > com.symbol.*", but i'm not sure how to do that without calling addAppender > on every class in com.symbol... eck. You can do this, first make sure Additivity is not turned off for any of the child loggers underneath 'c

Re: Listening for events

2004-01-28 Thread Sloan Seaman
I pulled it off like so (thanks for the suggestion Paul): final List logMessages = new ArrayList(); // setup to listen for log warnings... Logger.getLogger(BarcodeGroupsHandler.class).addAppender( new AppenderSkeleton() { protected void append(LoggingEvent _event) { if ((Level.WARN

RE: SMTPAppender

2004-01-28 Thread Shapira, Yoav
Howdy, >Looking at the example code below, I'm a little confused as to how/where >the setSMTPAppender would get called? That was part of the other poster's example, it's not a part of the log4j framework. You have to associate the trigger evaluator with the appender, most people do it via confi

Re: SMTPAppender

2004-01-28 Thread Jeb Scarbrough
Looking at the example code below, I'm a little confused as to how/where the setSMTPAppender would get called? Secondly, is it feasible to do something like the below where the "foo" value gets set from a request parameter? Can someone please enlighten me?? Thanks for all the help. public boole

RE: [REPOST] log4j and AIX

2004-01-28 Thread Shapira, Yoav
Howdy, >I'm surprised I didn't get a reply to this. Should I try posting to the >developers' list? Please always remember the possibility that no one knows or no one cares. While that's less frequent on this list than others, it does happen, and none of us are paid for this ;) Personally, I h

RE: Listening for events

2004-01-28 Thread Shapira, Yoav
Howdy, Interesting: this is exactly the kind of interface I proposed adding to log4j a few weeks ago: http://marc.theaimsgroup.com/?l=log4j-dev&m=107409233130454&w=2 ;) Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Paul Smith [mailto:[EMAIL PROTECTED] >Sent: Tuesday

RE: [REPOST] log4j and AIX

2004-01-28 Thread Ceki Gülcü
I do not know the answer although I'd be interested to know. At 01:03 PM 1/28/2004 +, Robbie Baldock wrote: Yes, I read that - but I'm curious to know what the underlying problem is and whether anything's being done to resolve the issue. Is it something buggy in the IBM JVM? Robbie -Orig

RE: [REPOST] log4j and AIX

2004-01-28 Thread Robbie Baldock
Yes, I read that - but I'm curious to know what the underlying problem is and whether anything's being done to resolve the issue. Is it something buggy in the IBM JVM? Robbie -Original Message- From: Ceki Gülcü [mailto:[EMAIL PROTECTED] Sent: 28 January 2004 12:35 To: Log4J Users List

Re: [REPOST] log4j and AIX

2004-01-28 Thread Ceki Gülcü
Robbie, Retrieving location information, using the %L, %F, %M, %C conversion characters in PatternLayout, is known to be slow on AIX, at least that was the case couple of years ago. At 09:56 AM 1/28/2004 +, Robbie Baldock wrote: I'm surprised I didn't get a reply to this. Should I try post

[REPOST] log4j and AIX

2004-01-28 Thread Robbie Baldock
I'm surprised I didn't get a reply to this. Should I try posting to the developers' list? Robbie Baldock -Original Message- From: Robbie Baldock [mailto:[EMAIL PROTECTED] Sent: 21 January 2004 17:20 To: '[EMAIL PROTECTED]' Subject: log4j and AIX This is my first post here: I've just h

Re: specifying properties from command line

2004-01-28 Thread Ionel GARDAIS
Hi, I found the solution : -Dlog4j.configuration It works nd solves my problem : the properties file used is now mine, not the one of the third-party package. C u later, ionel _ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et e

Re: Appenders with different LogLevels

2004-01-28 Thread Waldemar Thiel
Use Threshold parameter for appenders - read help for more info. W. - Waldemar Thiel e-mail: [EMAIL PROTECTED] Roth Marcel <[EMAIL PROTECTED]> 2004-01-28 10:30 Please respond to "Log4J Users List" <[EMAIL PROTECTED]> To Log4J Users List <[EMAIL PROTECTE

Appenders with different LogLevels

2004-01-28 Thread Roth Marcel
Hi, I have a Logger with 2 different appenders (1x RollingFileAppender and 1x SMTP Appender). I would like to have separate LogLevels for each of them, ie. File >= DEBUG and Smtp=FATAL. Is there a good solution to this question without creating 2 separate Loggers ? any help appreciated ... M

DOMConfigurator.configureAndWatch

2004-01-28 Thread Andre . Fleischer . lsy
Hi, i want to use the DOMConfigurator.configureAndWatch method. The log4j.xml should be loaded from a web-server. So I use a URL-Object. When I use confige(URL) no problem, if I use configureAndWatch the log4j.xml file is not loaded. Any ideas ? André *

RE: log4j.properties not read

2004-01-28 Thread Christian Hufgard
> Is there a way to force the use of a certain > properties file ? Yes, you could use the code I sent to the list... Give your properties file another name than log4j.properties (e.g. log4j.appname.properties) and call the method with that name. Christian -- +++ GMX - die erste Adresse für Mail

specifying properties from command line

2004-01-28 Thread Ionel GARDAIS
Hi all, Is there a way to specify the property file to use at runtime ? (like by adding a -Dlog4j.something on the command line) Thanks, ionel _ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://