F1bonacc1 / process-compose

Process Compose is a simple and flexible scheduler and orchestrator to manage non-containerized applications.
https://f1bonacc1.github.io/process-compose/
Apache License 2.0
1.34k stars 52 forks source link

[Feature Request] Multi process logging #279

Open albertilagan opened 8 hours ago

albertilagan commented 8 hours ago

Feature Request

Similar to how logging is displayed when tui is disabled where every logs is showing, it would be nice if we can select which process/es to show logs.

Use Case:

I have custom script that utilize process-compose cli, e.g dev logs triggers fzf selection then show logs for the selected process, with this feature I can allow fzf --multi to show logs for those selected processes.

Best paired with --detach mode so I don't need to see all process logs,

Proposed Change:

process-compose process logs app,backend,web

Alternative Approaches

#!/bin/bash

process-compose process logs app --follow &
process-compose process logs engine --follow

# Wait for both commands to finish
wait
albertilagan commented 7 hours ago

when I mention the showing all logs when tui is disable it might be a devenv feature just in case it confuses someone.