3 ms·
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 s
by jamesaguilar 12y ago
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.
- shabble 12y agoThe downside is of course that if you crash hard, the most valuable log entries are the ones least likely to be on-disk afterwards.
- snuxoll 12y agoWhich is why logging to disk on the server is BAD, have your log framework write to stdout and have upstart/systemd/whatever handle writing to a remote syslog server or whatever your fancy is.