News for hackers. Stuff that matters.
Re:The Art of Logging by gmuslera on Wednesday October 05, 2022 @03:54PM (#33100505)
There is an opinionated vision of logs, for a particular use case and available resources.

For simple enough logs (like the nginx/apache example shown) having so simple format enables a quick and dirty search and information extraction with common unix command line tools (like grep, cut, sort, uniq, tail and sometimes rev or awk). It is not an approach that works for all logs and all situations, but sometimes is enough. And simplicity is a good thing to have.

Re:The Art of Logging by rconti on Wednesday October 05, 2022 @05:39PM (#33101533)
Plus it's virtually impossible to visually scan log messages as they go by when they're 10 lines long per entry vs 1 or 2 lines long.
Re:The Art of Logging by jkharrat on Friday October 07, 2022 @02:46PM (#33125372)
I agree with the simplicity approach I like it too. However, I think sometimes we do not have a choice especially in distributed sytems or "micro"services environement. I think with great "complexity" comes great responsibility.