3 ms·
Once you go down this path though, what do you need any logs for? Logs are standard and easy, which is why people use them.
by Groxx 3y ago
Once you go down this path though, what do you need any logs for?
Logs are standard and easy, which is why people use them.
- dewey 3y agoIt is still very helpful to see for example which id or entity caused an issue or was slow. These are things you can’t feed into metrics usually. Metrics show you that something is wrong / alerting. Logs show you what is wrong and where to start debugging.
- otabdeveloper4 3y agoRealistically, you only need logs to debug crashes. (Segv's and null pointer violations and such.) Anything else will quickly get turned into a metric stream anyways.
- Groxx 3y agoIn terms of using stderr/stdout: yeah I think this is totally defensible. And depending on how hard you squint, and if you use Plan9, logging to a separate log file is just a metrics stream too, and it very well could be transformed into one before being sent anywhere else. This is overwhelmingly normal too, so it's not a hypothetical extreme at all - avoiding std* is often a good practice. Semi-structured streams with basically unbounded cardinality are still useful tho, and I think that's arguably "a log" regardless of how it's represented. And then levels come back into the system.