busimus / cutelog

GUI for logging
MIT License
479 stars 45 forks source link

Reuse tabs when a new session is created #39

Open opalrose510 opened 1 year ago

opalrose510 commented 1 year ago

Hello,

Really love this tool. I have a few uvicorn services that restart whenever a file is changed. That closes the connection, and it means when the process restarts, it makes a new tab. Is there any way to reuse a tab after a connection is closed?

Thanks :)

busimus commented 1 year ago

If you don't mind having only one tab, then enable "Single tab mode" in the File menu (and also "Single tab mode by default" option in the Server section of settings).

But since you said "a few services", do you specifically need this functionality while having multiple tabs? That's harder since connections are identified only by their source IP and a random port. This would require a custom SocketHandler, which is why I never bothered with that before.

opalrose510 commented 1 year ago

Thanks for the quick reply! Yeah, I have three parallel services that will each initiate their own connection whenever they are restarted.