The JSON support in flyctl logs
is nice, but the format can be hard for other programs to digest since the values are not line-delimited. Many programs expect the “JSON Lines” style of formatting since it doesn’t require their JSON parser to deal with subsequent JSON values. Is there any chance this could be added as another option in the future?
We are doing less JSON in flyctl these days, so I think it’s unlikely.
I think your best bet is to subscribe to the NATS log stream (like flyctl does).
Now that I wrote this all out, though, I’d be ok with a PR to [flyctl](https://github.com/superfly/flyctl)
that adds a fly logs --raw
and just prints the NATs bodies to stdout. It is not a bad idea, I just don’t know when we’ll get to it!