From f91f47ff57960b833f353f4611a179078e6c3c41 Mon Sep 17 00:00:00 2001 From: Taimoor Zaeem Date: Wed, 26 Mar 2025 19:32:42 +0500 Subject: [PATCH] docs: mention log-level setting in the logs section --- docs/references/observability.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/references/observability.rst b/docs/references/observability.rst index 603d8e3de..37abc8c38 100644 --- a/docs/references/observability.rst +++ b/docs/references/observability.rst @@ -17,6 +17,8 @@ Logs PostgREST logs basic request information to ``stdout``, including the authenticated user if available, the requesting IP address and user agent, the URL requested, and HTTP response status. +With :ref:`log-level` set to ``info``, we get: + .. code:: 127.0.0.1 - user [26/Jul/2021:01:56:38 -0500] "GET /clients HTTP/1.1" 200 - "" "curl/7.64.0" @@ -41,6 +43,10 @@ For diagnostic information about the server itself, PostgREST logs to ``stderr`` 06/May/2024:14:11:27 -0500: Received a config reload message on the "pgrst" channel 06/May/2024:14:11:27 -0500: Config reloaded +.. note:: + + Logs are based on the ``log-level`` setting. See :ref:`log-level`. + .. _sql_query_logs: SQL Query Logs