nickstenning / honcho

Honcho: a python clone of Foreman. For managing Procfile-based applications.
http://pypi.python.org/pypi/honcho
MIT License
1.6k stars 146 forks source link

Multiple Printers to Honcho Manager? #205

Open achillesrasquinha opened 6 years ago

achillesrasquinha commented 6 years ago

Was wondering if there is a way to add multiple Printer objects (for instance, std.out and file) to a Manager object?

Using the Honcho API, not the command-line interface.

nickstenning commented 6 years ago

From a glance at the code that's not currently possible, but I suspect it wouldn't be too tricky to make the necessary changes. Feel free to have a go at it if you'd like. As long as the code remains tested and the default behaviour (i.e. one printer to STDOUT) remains the same I'd happily merge the changes.

achillesrasquinha commented 6 years ago

I guess the Manager requires a collection of printers to write to. I'll send in a PR soon for this!

achillesrasquinha commented 6 years ago

I'm currently using honcho as my development runner (using the Python API and not a Procfile). I was keen to have the logs on screen and on a buffer. Somewhat like how winston does it.