Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Enable better control of logging levels#135

Merged
skx merged 1 commit intomasterfrom
better-logging
Jun 10, 2024
Merged

Enable better control of logging levels#135
skx merged 1 commit intomasterfrom
better-logging

Conversation

@skx
Copy link
Copy Markdown
Owner

@skx skx commented Jun 10, 2024

As noted in a comment on #103 it would be nice to have the ability to show only errors - not warnings and debug-messages too.

This pull-request removes "LOG_ALL" from the documentation, replacing it with "LOG_LEVEL" - for compatibility LOG_ALL becomes "LOG_LEVEL=DEBUG". The new LOG_LEVEL allows :

  • ERROR
    • Show only errors.
  • WARN
    • Show errors and warnings.
  • DEBUG
    • Show errors, warnings, and debug-messages.

As noted in a comment on #103 it would be nice to have the ability
to show only errors - not warnings and debug-messages too.

This pull-request removes "LOG_ALL" from the documentation, replacing
it with "LOG_LEVEL" - for compatibility LOG_ALL becomes
"LOG_LEVEL=DEBUG".  The new LOG_LEVEL allows :

* ERROR
  * Show only errors.
* WARN
  * Show errors _and_ warnings.
* DEBUG
  * Show errors, warnings, _and_ debug-messages.
@skx skx merged commit e2b91a6 into master Jun 10, 2024
@skx skx deleted the better-logging branch June 10, 2024 15:04
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