Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the log formatter configurable #371

Merged
merged 2 commits into from
May 8, 2024

Conversation

mtrop-godaddy
Copy link
Contributor

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).

The change lets us configure the deamon and the plugins to output logs
in the JSON format, which is easier to parse/filter by log processing
tools.
@tg123
Copy link
Owner

tg123 commented May 8, 2024

everything looked good to me, let me fix the pipeline

@tg123 tg123 merged commit 73169bb into tg123:master May 8, 2024
1 of 2 checks passed
@mtrop-godaddy mtrop-godaddy deleted the feature/json-log-format branch May 9, 2024 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants