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

Logger周り見直し #839

Open
H1rono opened this issue Dec 30, 2024 · 5 comments
Open

Logger周り見直し #839

H1rono opened this issue Dec 30, 2024 · 5 comments

Comments

@H1rono
Copy link
Member

H1rono commented Dec 30, 2024

#825 で苦しさを感じたので

@H1rono
Copy link
Member Author

H1rono commented Dec 30, 2024

とは言ってもzap.Withでフィールドを追加したい
つまりdefault logger per goroutineが欲しいんだけど、これはcontextに突っ込むのが手っ取り早いか...

@H1rono
Copy link
Member Author

H1rono commented Jan 2, 2025

loggingパッケージ復活かなあ
#807 で飛ばしたものとは全く違うもので, context.WithValuecontext.Valueを使ったloggerの引き回しを管理する役割

@H1rono
Copy link
Member Author

H1rono commented Jan 4, 2025

echoとentのlogger設定はzap.NewStdLogAtあたりから繋げられそう

@H1rono
Copy link
Member Author

H1rono commented Jan 4, 2025

echo.New見るにむやみに触らん方がいいな...

@H1rono
Copy link
Member Author

H1rono commented Jan 4, 2025

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