Logging to a network file system

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

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@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user

If you can make the network drive appear like a local file system to your application then you can log normally (with the added possibility that your program will have to wait until the file system accepts the flush - this may slow your application down). If this is unacceptable then consider forwarding your log events to a dedicated logging server with buffering capabilities so your application will run at full speed. I believe this is the business case for Logback-audit (http://audit.qos.ch/) which is commercial software. /Thorbjørn -----Original Message----- From: logback-user-bounces@qos.ch [mailto:logback-user-bounces@qos.ch] On Behalf Of Scott Ruch Sent: 25. oktober 2012 21:35 To: logback-user@qos.ch Subject: [logback-user] Logging to a network file system 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@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user
participants (3)
-
Ralph Goers
-
Scott Ruch
-
Thorbjørn Ravn Andersen