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

Map V-level logging to logrus named logging #13

Merged
merged 1 commit into from
May 1, 2022
Merged

Conversation

bombsimon
Copy link
Owner

After looking at the code for other logr implementations such as zapr
and zerologr it makes more sens that logrus also should try to map logr
V-level logging to named logging as close as possible.

  • V0 is kept as severity Info
  • V1 is logged as severity Debug
  • V2 is logged as severity Trace

Closes #11

After looking at the code for other logr implementations such as zapr
and zerologr it makes more sens that logrus also should try to map logr
V-level logging to named logging as close as possible.

* V0 is kept as severity Info
* V1 is logged as severity Debug
* V2 is logged as severity Trace
@bombsimon bombsimon merged commit bf8a48a into main May 1, 2022
@bombsimon bombsimon deleted the logrus-severity branch May 1, 2022 21:12
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.

Level 1 and 2+ should map to corresponding Logrus Debug and Trace levels
1 participant