Skip to content

feat: expose log function#95

Merged
aymanbagabas merged 1 commit intomainfrom
custom-level
Dec 7, 2023
Merged

feat: expose log function#95
aymanbagabas merged 1 commit intomainfrom
custom-level

Conversation

@aymanbagabas
Copy link
Copy Markdown
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

@codecov
Copy link
Copy Markdown

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
@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