Hacker News new | past | comments | ask | show | jobs | submit login

Log synchronously. Either exploit the POSIX propensity of buffering lines, have an explicit synchronization on your IO routine (that doesn't need to stop the business code), or log each thread to a different stream.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: