[FIX] developer/reference/cli: log on stderr

Odoo is actually logging on sys.stderr and not sys.stdout[^1][^2][^3].

Remove passage about the workflows, the workflows were an OpenERP
feature removed almost a decade ago in odoo/odoo@98cb4719db.

Fixes: #7210

[^1]: b3b9b2b49e/odoo/netsvc.py (L156)
[^2]: b3b9b2b49e/odoo/netsvc.py (L198)
[^3]: https://docs.python.org/3/library/logging.handlers.html#logging.StreamHandler

closes odoo/documentation#7253

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
Julien Castiaux 2024-01-04 16:04:17 +01:00
parent 36d0a51496
commit c55e8f251a

View File

@ -450,14 +450,13 @@ HTTP
Logging Logging
~~~~~~~ ~~~~~~~
By default, Odoo displays all logging of level_ ``info`` except for workflow By default, Odoo displays all logging of level_ ``INFO``, ``WARNING`` and ``ERROR``. All logs
logging (``warning`` only), and log output is sent to ``stdout``. Various independently of the level are output on ``stderr``. Various options are available to redirect
options are available to redirect logging to other destinations and to logging to other destinations and to customize the verbosity.
customize the amount of logging output.
.. option:: --logfile <file> .. option:: --logfile <file>
sends logging output to the specified file instead of stdout. On Unix, the sends logging output to the specified file instead of ``stderr``. On Unix, the
file `can be managed by external log rotation programs file `can be managed by external log rotation programs
<https://docs.python.org/3/library/logging.handlers.html#watchedfilehandler>`_ <https://docs.python.org/3/library/logging.handlers.html#watchedfilehandler>`_
and will automatically be reopened when replaced and will automatically be reopened when replaced