-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
log: remove loghelper package (#1721)
The functions in the loghelper package are not necessary anymore with the new log package as the check multilogger is able to log into the log file as well as into each check's log archive, which can be later used to fill the log section in the claim file. Helper functions for the checks receive now the logger instance of the check, so that logs can be written inside those functions but tagged with the check's name and recorded in that check's log archive. For this, a new Logger type has been defined, as well as a set of methods to be used by the logger instance. With the help of the new Logger type a small refactor of the log package is included in this change. Now the "log/slog" library is only used inside this package, isolating the rest of the code from any other logging libray than our internal log package.
- Loading branch information
Showing
16 changed files
with
192 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.