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

a better wrapper #10

Open
ttys3 opened this issue Mar 25, 2023 · 3 comments
Open

a better wrapper #10

ttys3 opened this issue Mar 25, 2023 · 3 comments

Comments

@ttys3
Copy link
Owner

ttys3 commented Mar 25, 2023

since slog api changed, and has WithContext method and Ctx method removed, and add some bad InfoCtx like method.

we need a better wrapper.

@ttys3
Copy link
Owner Author

ttys3 commented Mar 25, 2023

something like:

slogsimple.setup()

logger := slogsimple.New()

log := logger.Ctx(ctx)

log.Info()

log.Error()

@ttys3
Copy link
Owner Author

ttys3 commented Mar 25, 2023

@ttys3
Copy link
Owner Author

ttys3 commented Aug 10, 2023

trace_id in log:

image

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

No branches or pull requests

1 participant