Skip to content

Logging classes#14

Merged
obiwac merged 16 commits intomainfrom
feature/logging-classes
Aug 6, 2025
Merged

Logging classes#14
obiwac merged 16 commits intomainfrom
feature/logging-classes

Conversation

@obiwac
Copy link
Member

@obiwac obiwac commented Aug 5, 2025

Resolves #12.

Will make it into v0.3.0.

To do:

  • Implement logging classes (and replace components with this entirely).
  • Remove __func__ logging (rationale is that filename/line number sufficient).
  • Way to ignore UMBER_LVL_FATAL messages for a class? -> Elegant solution in UMBER_LVL_NEVER.
  • Shorten LOG_* macros?
  • Think about if we should preserve the UMBER_BLACKLIST/UMBER_WHITELIST environment variables or just do everything with the new UMBER_LVL syntax now. -> UMBER_WHITELIST can be emulated by UMBER_LVL=*=never,class=verbose and UMBER_BLACKLIST can be emulated by UMBER_LVL=class=never, so we bing chillin.
  • Add and update tests. -> Didn't add many new tests, but this is simple enough that I'll just add regression tests if I run into issues, whatever.
  • Update documentation.

obiwac added 3 commits August 6, 2025 01:10
The reasoning behind this is that this is not needed for debugging.
Filename and line number suffice.
@obiwac obiwac added the enhancement New feature or request label Aug 5, 2025
@obiwac obiwac marked this pull request as ready for review August 6, 2025 12:37
@obiwac obiwac merged commit 437986a into main Aug 6, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Logging classes (v0.3.0?)

1 participant

Comments