tg123 / sshpiper

The missing reverse proxy for ssh scp
https://sshpiper.com/
MIT License
974 stars 132 forks source link

Make the log formatter configurable #371

Closed mtrop-godaddy closed 4 months ago

mtrop-godaddy commented 4 months ago

Apologies for not opening a feature request first. Just wanted to see how easy it was to implement support for JSON logs and it ended up being fairly simple.

Any chance this could be merged? I'm happy to make adjustments if you see any issues with the current implementation. The main goal is to be able to configure sshpiper to output logs in JSON format (by using logrus's JSONFormatter instead of the default Text one).

tg123 commented 4 months ago

everything looked good to me, let me fix the pipeline