How to trigger email eventough there is no ERROR

2008-10-08 Thread geek.shrek
Hi, I would like to send email on WARNING level or higher and append it in the buffer. When I reach the end of my application I would like to send email that collected in the buffer even though there is no ERROR. Is it possible to trigger sending email even though there is no ERROR? I've tried

How to send email with SMTPAppender only once when the application is done

2008-10-08 Thread geek.shrek
Is it possible to send an email only once? For example I want to send all the WARNING and ERROR when the application has finish. Thanks,

RE: Dual logging problem - outofmemoryerror... heap space

2008-10-08 Thread Thomas Muller
... and here is the implementation as as well ;) -- Thomas | -Original Message- | From: Thomas Muller [mailto:[EMAIL PROTECTED] | Sent: 08 October 2008 19:07 | To: 'Log4J Users List' | Cc: 'Log4J Developers List' | Subject: RE: Dual logging problem - outofmemoryerror... heap space |

Re: PatternLayout + MDC Problem

2008-10-08 Thread Curt Arnold
On Oct 8, 2008, at 2:41 PM, Stefan Borovac wrote: Hi All, I'am currently working on a simple service which connects the XMLSocketReceiver with a DBAppender. I'am using the latest SNAPSHOTs from either log4j, log4j-components, and log4j-receiver. To test the service, I connect a ConsoleAppend

PatternLayout + MDC Problem

2008-10-08 Thread Stefan Borovac
Hi All, I'am currently working on a simple service which connects the XMLSocketReceiver with a DBAppender. I'am using the latest SNAPSHOTs from either log4j, log4j-components, and log4j-receiver. To test the service, I connect a ConsoleAppender to a logger to track the transmitted packages. The

RE: Dual logging problem - outofmemoryerror... heap space

2008-10-08 Thread Thomas Muller
Hi, I think the functionality you're after is interesting and useful in a Log4j toolbox - hence I added it to ours. My solution (IMHO) offers a much more generic solution to the problem. Instead of "spying" on the Logger, I've implemented an Appender which again implements the AppenderAttachable

SV: Dual logging problem - outofmemoryerror... heap space

2008-10-08 Thread Johan Sandgren
Thanks for your suggestions Bruno I'll give you more info. The system will be running for a long time, and people won't be there to read the logs searching for errors being logged, before the logfiles are rotated and overwritten again. That's why I need to extract the errors to another file, wi

RE: Dual logging problem - outofmemoryerror... heap space

2008-10-08 Thread Bruno Melloni
This might be a dumb question/answer... but instead of using the spy class, why not stick to the RollingFileAppender and simply increase the max file size or the number of backup files kept, so that you keep enough logs? Or, if you don't have the disk space, why not use the finer grain control -

FileLogger according to the location

2008-10-08 Thread chamila piyasena
Hi, I'm using a centralised log server using SimpleSocketServer, and the client applications sends lod data using Socket Appender. Can I Use File Appender in the log server which logs to separate files according to the location(i.e. according to the client the data is sent). Should I use a filterin

Dual logging problem - outofmemoryerror... heap space

2008-10-08 Thread Johan Sandgren
Hi, Need advice from professionals here... I'm stuck! :( I'm using log4j, and my logs are rotating quite fast, so if an error occurs, for example in the middle of the night, it will not be present in the log in the morning when I arrive to check for errors. So I decided to extract the errors