-
Notifications
You must be signed in to change notification settings - Fork 3
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
Comments
とは言っても |
Open
|
Merged
echoとentのlogger設定は |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#825 で苦しさを感じたので
router.Handlers
にLogger
フィールドがあるが、これだとecho.Context
外なのでservice/webhook.go
からアクセスできないmodel
層とent
層も見たいmodel
層ではそもそもLoggerにアクセスできない。かと言って雑にctx
に突っ込むのは違うslog時代のGoではloggerをcontextで引きまわさなくて良い気がする - Diary of a Perpetual Student
ent
層ではlog.Println
が使われている。Jomon/ent/client.go
Line 103 in a637f70
Loggerは設定可能っぽいのでこれを使う
Jomon/ent/client.go
Lines 126 to 130 in a637f70
The text was updated successfully, but these errors were encountered: