Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: expose log function #95

Merged
merged 1 commit into from Dec 7, 2023
Merged

feat: expose log function #95

merged 1 commit into from Dec 7, 2023

Conversation

aymanbagabas
Copy link
Member

Exposing logger.Log makes it possible to use a custom log level to log messages. Simply define a new level and use Log and Logf to log messages using the newly defined level.

Fixes: #89

Copy link

codecov bot commented Nov 27, 2023

Codecov Report

Attention: 10 lines in your changes are missing coverage. Please review.

Comparison is base (595fffe) 80.16% compared to head (df1abf1) 79.51%.
Report is 1 commits behind head on main.

❗ Current head df1abf1 differs from pull request most recent head a0320b1. Consider uploading reports for the commit a0320b1 to get more accurate results

Files Patch % Lines
logger.go 66.66% 5 Missing ⚠️
pkg.go 68.75% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #95      +/-   ##
==========================================
- Coverage   80.16%   79.51%   -0.66%     
==========================================
  Files          11       11              
  Lines         731      737       +6     
==========================================
  Hits          586      586              
- Misses        131      137       +6     
  Partials       14       14              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Exposing `logger.Log` makes it possible to use a custom log level to log
messages. Simply define a new level and use `Log` and `Logf` to log
messages using the newly defined level.

Fixes: #89
@aymanbagabas aymanbagabas merged commit 2338a13 into main Dec 7, 2023
14 checks passed
@aymanbagabas aymanbagabas deleted the custom-level branch December 7, 2023 17:26
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.

Custom log levels
2 participants