lirantal / dockly

Immersive terminal interface for managing docker containers and services
https://lirantal.github.io/dockly/
MIT License
3.77k stars 150 forks source link

Feature request: Logging suggestions #248

Open erikvullings opened 1 year ago

erikvullings commented 1 year ago

When using dockly, I often wish to inspect the log output of a particular container. That works really well, except that it only shows the last x lines, which is sometimes not sufficient, e.g. I cannot see the way it started, or miss the start of an error message. Could you make the log longer, preferably scroll back on demand till the start of the logs.

Second, when I use dockly to inspect the log of container 1, and next select the log of container 2, the two (or more) logs get combined. I would prefer if I would only see a single log (the last one selected). Or alternatively, if there is a use case for a joined log (e.g. you have multiple containers of the same type, allow me to toggle to view a single log.

lirantal commented 1 year ago

When using dockly, I often wish to inspect the log output of a particular container. That works really well, except that it only shows the last x lines, which is sometimes not sufficient, e.g. I cannot see the way it started, or miss the start of an error message. Could you make the log longer, preferably scroll back on demand till the start of the logs.

You can expand the logging window to be full screen and then scroll it up and down (check the key shortcuts on the bottom line ;-))

Second, when I use dockly to inspect the log of container 1, and next select the log of container 2, the two (or more) logs get combined. I would prefer if I would only see a single log (the last one selected). Or alternatively, if there is a use case for a joined log (e.g. you have multiple containers of the same type, allow me to toggle to view a single log.

I'll have to check but I think we use the same window to print logs to, so indeed they'll get mixed up. This could be a good feature request.

erikvullings commented 1 year ago

Thanks for the fast reply! About the first point, though, i wasn't clear: if the service has generated 1000 log lines, I can only see the last 200 lines or so (I'm not sure what's the current limit). But I would prefer to be able to scroll back till the start, so I can also see the initial lines, e.g. containing some startup info.