3 ms·
For me the biggest nuisance is keeping multi-line logs together.
by iudqnolq 5y ago
For me the biggest nuisance is keeping multi-line logs together.
- remram 5y agoJust output JSON! Most log systems will happily consume JSON, and you can easily run it through `jq -r` if you want to read it in your terminal/vi/emacs or use grep. $ ./myapp &>myapp.log # Get error messages mentioning "foobar" $ jq -c 'select(.severity=="error")' | grep "foobar" | jq -r '.message'