Open trentm opened 2 years ago
Another example might be separate lambda instances in aws logs tail --follow /aws/lambda/${fnname}
output.
...
2021-11-22T23:49:37.474000+00:00 2021/11/22/[$LATEST]0a924d337cb44629a161d8885d0a0f3e 2021/11/22 23:49:37 Received SHUTDOWN event
2021-11-22T23:49:37.474000+00:00 2021/11/22/[$LATEST]0a924d337cb44629a161d8885d0a0f3e 2021/11/22 23:49:37 Exiting
...
Say you have a log file with some context from component="foo" and some from component="bar", etc. An option to say
--segment=component
that would pick a background color for the "foo" log records and another for the "bar" log records might be helpful. This could be the default when rendering logs from multiple input files, or when (eventually) handling logs output from multiple containers withdocker-compose ...
output.