Subclass the SMTP appender for catching any send errors and retry send the log 
message to Localmachine, where a you provide a listener which logs into a file.
Heri

> -----Original Message-----
> From: Takacs Bence [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 16, 2006 2:22 PM
> To: Log4J Users List
> Subject: network using appenders when network is down
> 
> 
> Hello
> 
> Our servers have small storage, so I don't want to use FileAppender.
> What can I do if the LAN is down and my appender wants to 
> send an email 
> or send a Socket message? The buffer will be deleted if the 
> server will 
> reboot, and additionally I don't know what is the physical limit for 
> buffer size.
> 
> Or is there any possibility to say to log4j: "if you can send the 
> messages:send; if not: call the daily rolling appender"? 
> Because in this 
> case I could write an other application, which looks for log files in 
> every reboot, send the content with some kind of network 
> appender, and 
> delete the log files.
> 
> Thanks:
>       Bence
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to