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
This is a copy of a troubleshooting article on Supabase's docs site. It may be missing some details from the original. View the original article.
What are logger and log_level parameters?
The Realtime client provides built-in logging to help you debug connection issues, track messages, and understand what's happening with your real-time connections. Two parameters control logging:
logger: A custom function to handle log messages
logLevel: Controls which messages the server logs (info, warn, or error)
By default, logging is disabled. When enabled, you can see:
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
Uh oh!
There was an error while loading. Please reload this page.
This is a copy of a troubleshooting article on Supabase's docs site. It may be missing some details from the original. View the original article.
What are logger and log_level parameters?
The Realtime client provides built-in logging to help you debug connection issues, track messages, and understand what's happening with your real-time connections. Two parameters control logging:
logger: A custom function to handle log messageslogLevel: Controls which messages the server logs (info,warn, orerror)By default, logging is disabled. When enabled, you can see:
How to enable logging in your Realtime client
Basic logging to console
With log levels for server-side filtering
Understanding log messages
The logger receives three parameters:
kind,msg, anddata.Log kinds you'll see:
push- Messages sent to the serverreceive- Messages received from servertransport- Connection eventserror- Error eventsworker- Web Worker eventsCommon debugging scenarios
Debug why channel won't subscribe:
Debug message delivery issues
All reactions