Skip to content

feat: adds dedicated formatted logging functions - #197

Merged
JAORMX merged 2 commits into
mainfrom
tweaks-logging
Apr 16, 2025
Merged

JAORMX merged 2 commits into
mainfrom
tweaks-logging

Conversation

@ChrisJBurns

@ChrisJBurns ChrisJBurns commented Apr 15, 2025 •

Copy link
Copy Markdown
Collaborator

This PR:

  • adds formatted logging functions and moves over all logging to use it
  • adds better tests that use the real loggers for unstructured/structured logging as well as formatted and unformatted logging.

If you wanted to pass in custom messages with variables into logging functions,
you had to use fmt.Sprintf in addition to the logging function.
This PR adds the formatted logging functions and switches all uses of logging
over to the new formatted logging functions so the calling of the functions
are nicer to use. In addition, this commit improves the logger tests
so that it uses the real logger functions so we can verify that the logs
are definitely real.

Signed-off-by: ChrisJBurns <[email protected]>
Signed-off-by: ChrisJBurns <[email protected]>
@ChrisJBurns ChrisJBurns changed the title Moves SprintF into logging functions to reduce code feat: adds dedicated formatted logging functions Apr 15, 2025
@JAORMX
JAORMX merged commit d8f6a69 into main Apr 16, 2025
@JAORMX
JAORMX deleted the tweaks-logging branch April 16, 2025 03:49
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