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

feat: Use json log formatter if stdout isnt tty #699

Merged
merged 1 commit into from
Jul 2, 2020
Merged

feat: Use json log formatter if stdout isnt tty #699

merged 1 commit into from
Jul 2, 2020

Conversation

terev
Copy link
Contributor

@terev terev commented Jun 14, 2020

Closes #630

Uses json log formatter if stdout is not a tty. This will make it a lot easier to view logs in a log ingestor. It should be noted that this mr will change the default log formatter to JSON. This is because a tty is not allocated when executing any of the binaries. Should there be a way to force the log format to text?

@terev terev changed the title Use json log formatter if stdout isnt tty Fix: Use json log formatter if stdout isnt tty Jun 14, 2020
@terev terev changed the title Fix: Use json log formatter if stdout isnt tty Feat: Use json log formatter if stdout isnt tty Jun 14, 2020
@terev terev changed the title Feat: Use json log formatter if stdout isnt tty feat: Use json log formatter if stdout isnt tty Jun 14, 2020
Copy link
Member

@whynowy whynowy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@whynowy whynowy merged commit 9a62f30 into argoproj:master Jul 2, 2020
juliev0 pushed a commit to juliev0/argo-events that referenced this pull request Mar 29, 2022
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.

Option for Json formatted logs, force colours toggle
2 participants