FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[PR #14255/2755310d backport][9.0.x] TOML integer log levels must be quoted: Updating reference documentation by patchback[bot] · Pull Request #14264 · pytest-dev/pytest · GitHub

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

Filter by extension

Filter by extension .rst  (2) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
1 change: 1 addition & 0 deletions changelog/14255.doc.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Back | FazBrowse Home | New Git URL