Skip to content

Commit aa770b7

Browse files
[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 a8ddf85) Co-authored-by: Andrés Delfino <[email protected]>
1 parent b18f098 commit aa770b7

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Doc/library/logging.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -949,26 +949,26 @@ functions.
949949
+--------------+---------------------------------------------+
950950
| Format | Description |
951951
+==============+=============================================+
952-
| ``filename`` | Specifies that a FileHandler be created, |
952+
| *filename* | Specifies that a FileHandler be created, |
953953
| | using the specified filename, rather than a |
954954
| | StreamHandler. |
955955
+--------------+---------------------------------------------+
956-
| ``filemode`` | Specifies the mode to open the file, if |
957-
| | filename is specified (if filemode is |
958-
| | unspecified, it defaults to 'a'). |
956+
| *filemode* | If *filename* is specified, open the file |
957+
| | in this mode. Defaults to ``'a'``. |
959958
+--------------+---------------------------------------------+
960-
| ``format`` | Use the specified format string for the |
959+
| *format* | Use the specified format string for the |
961960
| | handler. |
962961
+--------------+---------------------------------------------+
963-
| ``datefmt`` | Use the specified date/time format. |
962+
| *datefmt* | Use the specified date/time format, as |
963+
| | accepted by :func:`time.strftime`. |
964964
+--------------+---------------------------------------------+
965-
| ``level`` | Set the root logger level to the specified |
966-
| | level. |
965+
| *level* | Set the root logger level to the specified |
966+
| | :ref:`level <levels>`. |
967967
+--------------+---------------------------------------------+
968-
| ``stream`` | Use the specified stream to initialize the |
968+
| *stream* | Use the specified stream to initialize the |
969969
| | StreamHandler. Note that this argument is |
970-
| | incompatible with 'filename' - if both are |
971-
| | present, 'stream' is ignored. |
970+
| | incompatible with *filename* - if both are |
971+
| | present, *stream* is ignored. |
972972
+--------------+---------------------------------------------+
973973

974974

0 commit comments

Comments
 (0)