logog::LogFile doesn't perform flushing after each loging

50 views
Skip to first unread message

Israel Sadeh

unread,
Mar 14, 2012, 1:21:42 PM3/14/12
to lo...@googlegroups.com
logog::LogFile doesn't perform flushing after each loging.
I think it should do flushing after each logging, and for users that wants differentley can use logog::LogBuffer.
 
Thanks,

John Byrd

unread,
Mar 14, 2012, 3:41:17 PM3/14/12
to lo...@googlegroups.com
Hi Israel,

Of course you can change the sources to add a fflush() after every output on the LogFile object, so that should work for you.  I'm not convinced that it's appropriate to flush the log file on every write, as fflushing is a synchronous event might cause the program to hang more often than necessary.  But I am certainly willing to consider a git patch if you want to write and test it.  Better yet would be to add a boolean flag to the LogFile object which would fflush only if the user wanted it.

jwb

--
You received this message because you are subscribed to the Google Groups "Logog" group.
To view this discussion on the web visit https://groups.google.com/d/msg/logog/-/zHvznzrxmH0J.
To post to this group, send email to lo...@googlegroups.com.
To unsubscribe from this group, send email to logog+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/logog?hl=en.



--
---

John Byrd
Gigantic Software
2102 Business Center Drive
Suite 210-D
Irvine, CA   92612-1001
http://www.giganticsoftware.com
T: (949) 892-3526 F: (206) 309-0850
Reply all
Reply to author
Forward
0 new messages