You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Be able to filter out certain kinds of logs or enhance them with more information
Non-Goals
No response
Background
The current logging solution in next-auth is not suited if you want to enrich the logs or adapt them to your specific needs. Especially in larger organizations with a lot of traffic, this can mean that the only option to get rid of logs or change the level of information provided is to patch the package itself.
Proposal
We should be able to provide a custom logger object/function in the next auth config. All logs should then go to that function.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Goals
Non-Goals
No response
Background
The current logging solution in next-auth is not suited if you want to enrich the logs or adapt them to your specific needs. Especially in larger organizations with a lot of traffic, this can mean that the only option to get rid of logs or change the level of information provided is to patch the package itself.
Proposal
We should be able to provide a custom logger object/function in the next auth config. All logs should then go to that function.
Beta Was this translation helpful? Give feedback.
All reactions