-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added log level support to SimpleLogger (#426)
Implement Log levels. Can be used as the default logger. Default log level can be later specified via configuration, or environment variable. I had been using the library and found out that I needed to define a custom logger to suppress logs, to be specific I was using the `dbfsAPI` to upload files, and I was getting bombarded with logs with each `add_block` request. ## Changes <!-- Summary of your changes that are easy to understand --> Add new Implementation for the `Logger` interface which respects the log level. ## Tests added 2 new tests found in [level -logger_test.go](logger/level_logger_test.go) - [x] `make test` passing - [x] `make fmt` applied - [ ] relevant integration tests applied
- Loading branch information
1 parent
08a9083
commit 91595e3
Showing
2 changed files
with
50 additions
and
7 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