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

karma: add ability to configure log format #731

Merged
merged 3 commits into from
May 27, 2019

Conversation

GiedriusS
Copy link
Contributor

@GiedriusS GiedriusS commented May 27, 2019

Add a rudimentary switch which would let users switch between different
formats used for logging. This is needed so that software such as
logstash could easily understand the structure of log messages and
index them accordingly.

Testing:

  • Ran:
./karma --log.format json
./karma --log.format text
./karma --log.format foobardoesntexist

And got the expected results.

Also, the updated unit tests pass.

Add a rudimentary switch which would let users switch between different
formats used for logging. This is needed so that software such as
`logstash` could easily understand the structure of log messages and
index them accordingly.
@GiedriusS GiedriusS requested a review from prymitive as a code owner May 27, 2019 08:04
@prymitive
Copy link
Owner

Thanks!

@GiedriusS
Copy link
Contributor Author

Sec, let me fix the tests 😄

Add a new field to the configuration string: log.format. It was missing
thus the unit test fails.
@prymitive
Copy link
Owner

👍there's a backlog of CI jobs since I just back from holidays, so it might take a while for everything to complete, I'll take a look and merge this in a few hours. Thanks again

@prymitive prymitive merged commit ea9ca54 into prymitive:master May 27, 2019
@GiedriusS GiedriusS deleted the add_json branch May 27, 2019 09:53
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants