Boost.Log and reinitializing text file backend on I/O errors

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Boost.Log and reinitializing text file backend on I/O errors

Boost - Users mailing list
Hi,

I'm using text file sink to log into a file on NFS filesystem.  I would like to make logging more robust when it comes to unreliability of NFS.

I've registered an exception handler to ignore I/O errors, but I don't know how to re-open the log file automatically so that logging would continue when the filesystem is online again.  My first try was to remove and reinitialize all sinks when the exception handler is called, but this seems to cause deadlock.

Is there a way to simply re-open the associated file which caused the exception? 

--
Tero

_______________________________________________
Boost-users mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-users