Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've also seen issues with logging after.

It feels more natural to log when something is complete instead of constantly saying when you're starting to do something, but it leads to issues where you have no idea what the system was actually doing when it failed. It's very easy to have the process die without logging what made it die, especially if you're using a language that doesn't provide stack traces or you have them turned off for performance.

Logging before an action also means it's possible to know what's going on when a process hangs. It might lead me to where I should look to resolve the problem instead of forcing me to just restart the service and hope for the best.



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

Search: