Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/14255.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TOML integer log levels must be quoted: Updating reference documentation.
15 changes: 12 additions & 3 deletions doc/en/reference/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1836,21 +1836,24 @@ passed multiple times. The expected format is ``name=value``. For example::


Sets the minimum log message level that should be captured for live logging. The integer value or
the names of the levels can be used.
the names of the levels can be used. Note in TOML the integer must be quoted, as there is no support
for config parameters of mixed type.

.. tab:: toml

.. code-block:: toml

[pytest]
log_cli_level = "INFO"
log_cli_level = "10"

.. tab:: ini

.. code-block:: ini

[pytest]
log_cli_level = INFO
log_cli_level = 10

For more information, see :ref:`live_logs`.

Expand Down Expand Up @@ -1951,21 +1954,24 @@ passed multiple times. The expected format is ``name=value``. For example::


Sets the minimum log message level that should be captured for the logging file. The integer value or
the names of the levels can be used.
the names of the levels can be used. Note in TOML the integer must be quoted, as there is no support
for config parameters of mixed type.

.. tab:: toml

.. code-block:: toml

[pytest]
log_file_level = "INFO"
log_cli_level = "10"

.. tab:: ini

.. code-block:: ini

[pytest]
log_file_level = INFO
log_cli_level = 10

For more information, see :ref:`logging`.

Expand Down Expand Up @@ -2020,21 +2026,24 @@ passed multiple times. The expected format is ``name=value``. For example::


Sets the minimum log message level that should be captured for logging capture. The integer value or
the names of the levels can be used.
the names of the levels can be used. Note in TOML the integer must be quoted, as there is no support
for config parameters of mixed type.

.. tab:: toml

.. code-block:: toml

[pytest]
log_level = "INFO"
log_cli_level = "10"

.. tab:: ini

.. code-block:: ini

[pytest]
log_level = INFO
log_cli_level = 10

For more information, see :ref:`logging`.

Expand Down