You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lnav, love it. Use macosuni_log a lot, slight wrinkle though... It only works if unified log outputs with option --style=ndjson
However that fails to work as an environment variable in steel ie log does not obey it AFAIK, though I believe --style=json can be used. But then I fail to get lnav in its best logging mode.
I can't set the style in an alias either as style must come after log mode (stream or show)
It is something I use a few times a month and I often forget the --style=ndjson
I guess I could create a function to take command parameters and reorder them but suspect that gets less maintainable.
So it's just a mention of the issue in case:
I missed a trick getting ndjson by default
there's another way to get macosuni_log working, say with plain json
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
lnav, love it. Use macosuni_log a lot, slight wrinkle though... It only works if unified log outputs with option --style=ndjson
However that fails to work as an environment variable in steel ie log does not obey it AFAIK, though I believe --style=json can be used. But then I fail to get lnav in its best logging mode.
I can't set the style in an alias either as style must come after log mode (stream or show)
It is something I use a few times a month and I often forget the --style=ndjson
I guess I could create a function to take command parameters and reorder them but suspect that gets less maintainable.
So it's just a mention of the issue in case:
Beta Was this translation helpful? Give feedback.
All reactions