The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: section for Realtime connection logging
Chase Granberryc3062a5e8ac2
diff --git a/apps/docs/pages/guides/platform/logs.mdx b/apps/docs/pages/guides/platform/logs.mdxindex f7d0f4d14be..bcfffd7a897 100644--- a/apps/docs/pages/guides/platform/logs.mdx+++ b/apps/docs/pages/guides/platform/logs.mdx@@ -59,6 +59,12 @@ Supabase provides a logging interface specific to each product. You can use simp[Realtime logs](https://app.supabase.com/project/_/logs/realtime-logs) show all server logs for your [Realtime API usage](../../guides/realtime).+<Admonition type="note">++Realtime connections are not logged by default. Turn on [Realtime connection logs per client](#logging-realtime-connections) with the `log_level` parameter.++</Admonition>+</TabPanel>@@ -125,6 +131,21 @@ If any permission errors are encountered when executing `alter role postgres ...</Admonition>+## Logging Realtime Connections++Realtime doesn't log new WebSocket connections or Channel joins by default. Enable connection logging per client by including an `info` `log_level` parameter when instantiating the Supabase client.++```javascript+import { createClient } from '@supabase/supabase-js'++const options = {+ realtime: {+ log_level: 'info',+ },+}+const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key', options)+```+## Logs ExplorerThe [Logs Explorer](https://app.supabase.com/project/_/logs-explorer) exposes logs from each part of the Supabase stack as a separate table that can be queried and joined using SQL.