72 karma · joined July 16, 2019
The absolute bare minimum should be for you to write those informal tests down and commit them to the repo. That's some golden knowledge I've gotten over time
It just requires the overhead of setting up the test runner
But some other places describe this a bit more liberally. And [2] notes that I should include a time stamp in each log entry which makes sense.
[1]: https://stackoverflow.com/questions/10699953/format-for-writ... [2]: https://www.papertrail.com/solution/tips/8-essential-tips-fo...
I've always had trouble before figuring out what a good compromise between log format and flexibility looks like. Especially wrt newlines in the log message itself (eg if I want to log a stack trace)
Any thoughts for a format that would generally work ootb in lnav or other log viewers?
The article lost me pretty early with these glaring oversights.