4 ms·
You may want to rethink your log format to have a single (minified JSON) entry per line - it can make your life easier in a variety of ways. Out of interest, wh
by kornish 8y ago
You may want to rethink your log format to have a single (minified JSON) entry per line - it can make your life easier in a variety of ways. Out of interest, what library are you using that logs single entries on multiple lines?
- mamcx 8y agoI don't always control my inputs. I use a variety of libraries (like explained here: https://www.reddit.com/r/rust/comments/8ygbvy/state_of_rust_for_iosandroid_on_2018/ https://www.reddit.com/r/rust/comments/8ygbvy/state_of_rust_...) so I'm more for the overall idea. But for this specific case I use https://www.newtonsoft.com/json https://www.newtonsoft.com/json. Eventually could incorporate the idea in my arsenal and maybe build a format streaming pipeline utility that can use across platforms.