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

Add options to filter logs by --logLevel and --context #271

Merged
merged 4 commits into from
Apr 1, 2023

Conversation

tw4l
Copy link
Member

@tw4l tw4l commented Mar 30, 2023

This PR adds --logLevel and --context CLI arguments which each take a comma-separated list of values to filter the logs by. If one or both arguments are provided, only log lines which match the specified log level and/or context will be logged. The PR also includes a new test which runs a crawl and verifies that all lines in the resulting log file(s) match the expected logLevel/contexts.

@tw4l tw4l force-pushed the issue-270-filter-logs branch from accf283 to 42cd9f9 Compare March 31, 2023 16:17
@tw4l tw4l force-pushed the issue-270-filter-logs branch from 42cd9f9 to 7c899d5 Compare March 31, 2023 16:32
@tw4l tw4l marked this pull request as ready for review March 31, 2023 16:40
@tw4l tw4l requested a review from ikreymer March 31, 2023 16:40
@ikreymer ikreymer merged commit 62fe4b4 into main Apr 1, 2023
@ikreymer ikreymer deleted the issue-270-filter-logs branch April 1, 2023 17:08
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.

2 participants