[logback-user] Logging to a network file system

Ralph Goers rgoers at apache.org
Thu Oct 25 22:19:27 CEST 2012


The only recommendation I would make is do not have multiple Appender instances try to write to the same file.  In theory, prudent mode will add file locking but my experience is that not all NFS implementations are equal and you may end up with corrupted files if you try to do it.

Ralph

On Oct 25, 2012, at 12:34 PM, Scott Ruch wrote:

> 
> Apologies if this has already been discussed.  I tried 
> searching the list archive but I didn't find anything 
> similar.
> 
> I've been required to start logging to a network file
> system and I wanted to find out what the best practices
> were for logback in this scenario. (IMO, "best practice"
> would be to not log to a network file system but that's
> not my decision.)
> 
> I've read through the documentation on the AsyncAppender
> and that is the direction I am evaluating.  Any other
> suggestions would be appreciated.
> 
> Thanks,
> 
> Scott
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-user



More information about the Logback-user mailing list