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

Honoのカスタムロガーを実装する #196

Open
naruse666 opened this issue Aug 17, 2024 · 3 comments
Open

Honoのカスタムロガーを実装する #196

naruse666 opened this issue Aug 17, 2024 · 3 comments
Assignees
Labels
🌐 API ✨ Enhancement New feature or request

Comments

@naruse666
Copy link
Contributor

naruse666 commented Aug 17, 2024

適当に考えたフォーマット
timestamp: (api-version|commit) "path" [Log level]: ...log
https://hono.dev/docs/middleware/builtin/logger#options

pathは組み込みのロガーに入ってるか。

@R1013-T
Copy link
Member

R1013-T commented Aug 17, 2024

console.logと何が違うのかわかっていない

@naruse666
Copy link
Contributor Author

みた感じ単なるconsole.logのラッパーで決められたフォーマットで出すことでデバッグしやすくなることを期待してます!
例えばproduction環境で未知のエラー出た時に重宝します ✨

@naruse666 naruse666 self-assigned this Sep 7, 2024
@naruse666
Copy link
Contributor Author

#197 でworkersのログを出している
そのドキュメントにもカスタムロガーの記載があるから、Honoとworkersのドキュメントの違いを見たい
https://developers.cloudflare.com/workers/observability/logs/workers-logs/#add-custom-logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌐 API ✨ Enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

2 participants