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

Research options for Next JS server logging #3651

Open
4 tasks
doug-s-nava opened this issue Jan 27, 2025 · 0 comments
Open
4 tasks

Research options for Next JS server logging #3651

doug-s-nava opened this issue Jan 27, 2025 · 0 comments

Comments

@doug-s-nava
Copy link
Collaborator

Summary

Currently we log some errors to the Next JS server log, but we are not logging anything in a structured way. If we want to end up in a situation where our logging is somewhat standardized and we can refer to server logs for a basic record of activity (even if New Relic provides similar information), we will need to do some research into what our options are.

Some assorted ideas to consider:

  • if we want to log every request / response as the API does, is there NextJS middleware we can use for this?
  • is there a way to control logging levels with an environment variable?
  • what adjustments would need to make to our existing logs to make a solution work?
  • is this not really a thing with Next? Do we need to adjust our thinking about server logs in this case, and can we explain the rationale for that to someone that might be expecting to be able to look at our server logs?

Acceptance criteria

  • document created documenting options for Next Js server logging including
    • recommendation for next steps
    • pros and cons for each option
    • basic usage / feature sets for each option
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant