On Wed, 2002-08-07 at 13:51, Stuart Siegel wrote:
> Is there some way of emulating the effect of the setBufferedIO()
> method on the log4j FileAppender class in the log4cpp FileAppender
> class?
>
> It seems like my debug messages that are being sent to a FileAppender
> are getting buffered and this is causing me some headaches when
> trying to track down the cause of a core dump.
Log4cpp does not have a setBufferedIO() equivalent at the moment.
But as a workaround you can open(2) the log file yourself with the
O_SYNC flag and pass the file descriptor to to FileAppender.
Regards,
Bastiaan
>
>
> =====
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Log4cpp-devel mailing list
> Log...@li...
> https://lists.sourceforge.net/lists/listinfo/log4cpp-devel
|