Commit aa770b70 authored by Tal Einat's avatar Tal Einat Committed by GitHub

[2.7] bpo-33943: Add references in the docs for logging.basicConfig (GH-7858) (GH-7902)

Adds references to info about file modes, `time.strftime()`, string formatting
syntaxes, and logging levels.

(cherry picked from commit a8ddf85a)
Co-authored-by: default avatarAndrés Delfino <adelfino@gmail.com>
parent b18f0983
......@@ -949,26 +949,26 @@ functions.
+--------------+---------------------------------------------+
| Format | Description |
+==============+=============================================+
| ``filename`` | Specifies that a FileHandler be created, |
| *filename* | Specifies that a FileHandler be created, |
| | using the specified filename, rather than a |
| | StreamHandler. |
+--------------+---------------------------------------------+
| ``filemode`` | Specifies the mode to open the file, if |
| | filename is specified (if filemode is |
| | unspecified, it defaults to 'a'). |
| *filemode* | If *filename* is specified, open the file |
| | in this mode. Defaults to ``'a'``. |
+--------------+---------------------------------------------+
| ``format`` | Use the specified format string for the |
| *format* | Use the specified format string for the |
| | handler. |
+--------------+---------------------------------------------+
| ``datefmt`` | Use the specified date/time format. |
| *datefmt* | Use the specified date/time format, as |
| | accepted by :func:`time.strftime`. |
+--------------+---------------------------------------------+
| ``level`` | Set the root logger level to the specified |
| | level. |
| *level* | Set the root logger level to the specified |
| | :ref:`level <levels>`. |
+--------------+---------------------------------------------+
| ``stream`` | Use the specified stream to initialize the |
| *stream* | Use the specified stream to initialize the |
| | StreamHandler. Note that this argument is |
| | incompatible with 'filename' - if both are |
| | present, 'stream' is ignored. |
| | incompatible with *filename* - if both are |
| | present, *stream* is ignored. |
+--------------+---------------------------------------------+
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment