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

Add zerolog as logger #39

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

elct9620
Copy link
Contributor

Changes

  • add zerolog
  • replace builtin log to zerolog

Usage

There are 2 types usage

  • pass as *zerolog.Logger
  • pass as context.Context

If we use zerolog.Ctx(ctx) to get *zerolog.Logger means this behavior may not initialize when the main program bootstrap

@tjjh89017 tjjh89017 merged commit 53bd12b into tjjh89017:main Sep 18, 2024
9 checks passed
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.

2 participants