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 output log level options #2282

Merged
merged 1 commit into from
Dec 19, 2022
Merged

Add output log level options #2282

merged 1 commit into from
Dec 19, 2022

Conversation

zuckschwerdt
Copy link
Collaborator

Adds an option to all outputs to set a maximum log level to proccess.

E.g. interesting uses might be:

  • -F json,v=5 : print logs up to NOTICE as json
  • -F csv,v=8:out.csv : log everything to a CSV file
  • -F kv,v=0, disable all logging on console

Defaults are:

  • json: v=0, log nothing
  • csv: v=0, log nothing
  • kv: v=8, log everything
  • syslog: v=4, log CRITICAL, ERROR, WARNING only
  • http: not configurable, the API offers all log levels

Preparation for #2254

@zuckschwerdt zuckschwerdt merged commit 0ff7247 into master Dec 19, 2022
@zuckschwerdt zuckschwerdt deleted the feat-outlvl branch December 19, 2022 17:44
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.

1 participant