From a7d7c3536c282347585e7b049d3dee9535ece33f Mon Sep 17 00:00:00 2001 From: Itxaso Aizpurua Date: Sun, 23 Oct 2022 22:11:47 +0200 Subject: [PATCH] add docs entry --- doc/en/how-to/logging.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/en/how-to/logging.rst b/doc/en/how-to/logging.rst index c99835a2b..723a79739 100644 --- a/doc/en/how-to/logging.rst +++ b/doc/en/how-to/logging.rst @@ -55,6 +55,12 @@ These options can also be customized through ``pytest.ini`` file: log_format = %(asctime)s %(levelname)s %(message)s log_date_format = %Y-%m-%d %H:%M:%S +Specific loggers can be disabled via ``--log-disable={logger_name}``. +This argument can be passed multiple times: + +.. code-block:: bash + pytest --log-disable=main --log-disable=testing + Further it is possible to disable reporting of captured content (stdout, stderr and logs) on failed tests completely with: