Re:Logging can be tricky
by jamesaguilar on Wednesday September 24, 2014 @01:39AM
(#8360065)
IMO the real issue is that a competent logging framework doesn't block app code to sync the log to disk. The buffer should be swapped out under lock, and then synced in a separate thread. Yuck.
[ Parent
| on HN ]
The downside is of course that if you crash hard, the most valuable log entries are the ones least likely to be on-disk afterwards.