3 ms·
There's something about logging that conjures all sort of strange situations. A very well established and expensive product apparently thought the way to write
by xorcist 5y ago
There's something about logging that conjures all sort of strange situations.
A very well established and expensive product apparently thought the way to write json logs is something akin to:
printf("{date: \"%s\", msg: \"%s\"}\n", date, msg);
That turned out real good when msg contained quotes.
Json isn't a magic bullet here. Most log pipelines end up with custom logic for all sorts of reasons that mostly shouldn't be an issue.