logging_json: enhance logging output by splitting levels into stdout and stderr

This commit is contained in:
Andrés Zacchino
2025-12-01 08:33:23 -03:00
committed by Iván Todorovich
co-authored by Iván Todorovich
parent e4d3fcdb8d
commit f4d3c65b2b
2 changed files with 38 additions and 4 deletions
+4
View File
@@ -12,3 +12,7 @@ The json logging is activated with the environment variable
In order to have the logs from the start of the server, you should add
``logging_json`` in the ``--load`` flag or in the ``server_wide_modules``
option in the configuration file.
You can split the logs in stderr and stdout with the environment variable
``ODOO_LOGGING_JSON_STDERR`` set to ``1``. In this case, the logs with a level
of WARNING or above will be sent to stderr, the others to stdout.