NextJS Access Logs #56658
Unanswered
jamesbrooks94
asked this question in
App Router
NextJS Access Logs
#56658
Replies: 1 comment
-
Custom server, reverse proxy, or... patch |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm struggling to create access logs for my Next app using App Router where log lines are emitted after a request has finished. For example, I'd like to get an access log for each of my API endpoints, all pages (all of mine are dynamic so are server side rendered).
The only way I can seem to get an access log is by creating a custom server. Additionally, I can't seem to get a span started within the custom server to propagate through to the request handlers.
Ideal access log format example:
GET /api/hello 200 2ms
If there is a solution for this, I haven't been able to find it after hours of searching. Could we either add this as a feature or if available update the docs.
Beta Was this translation helpful? Give feedback.
All reactions