@@ -1129,41 +1129,44 @@ functions.
1129
1129
+--------------+---------------------------------------------+
1130
1130
| Format | Description |
1131
1131
+==============+=============================================+
1132
- | `` filename `` | Specifies that a FileHandler be created, |
1132
+ | * filename * | Specifies that a FileHandler be created, |
1133
1133
| | using the specified filename, rather than a |
1134
1134
| | StreamHandler. |
1135
1135
+--------------+---------------------------------------------+
1136
- | `` filemode `` | Specifies the mode to open the file, if |
1137
- | | filename is specified (if filemode is |
1138
- | | unspecified, it defaults to 'a'). |
1136
+ | * filemode * | If * filename * is specified, open the file |
1137
+ | | in this :ref: ` mode < filemodes >`. Defaults |
1138
+ | | to `` 'a' ``. |
1139
1139
+--------------+---------------------------------------------+
1140
- | `` format `` | Use the specified format string for the |
1140
+ | * format * | Use the specified format string for the |
1141
1141
| | handler. |
1142
1142
+--------------+---------------------------------------------+
1143
- | ``datefmt `` | Use the specified date/time format. |
1143
+ | *datefmt * | Use the specified date/time format, as |
1144
+ | | accepted by :func: `time.strftime `. |
1144
1145
+--------------+---------------------------------------------+
1145
- | ``style `` | If ``format `` is specified, use this style |
1146
- | | for the format string. One of '%', '{' or |
1147
- | | '$' for %-formatting, :meth: `str.format ` or |
1148
- | | :class: `string.Template ` respectively, and |
1149
- | | defaulting to '%' if not specified. |
1146
+ | *style * | If *format * is specified, use this style |
1147
+ | | for the format string. One of ``'%' ``, |
1148
+ | | ``'{' `` or ``'$' `` for :ref: `printf-style |
1149
+ | | <old-string-formatting>`, |
1150
+ | | :meth: `str.format ` or |
1151
+ | | :class: `string.Template ` respectively. |
1152
+ | | Defaults to ``'%' ``. |
1150
1153
+--------------+---------------------------------------------+
1151
- | `` level `` | Set the root logger level to the specified |
1152
- | | level. |
1154
+ | * level * | Set the root logger level to the specified |
1155
+ | | :ref: ` level < levels >`. |
1153
1156
+--------------+---------------------------------------------+
1154
- | `` stream `` | Use the specified stream to initialize the |
1157
+ | * stream * | Use the specified stream to initialize the |
1155
1158
| | StreamHandler. Note that this argument is |
1156
- | | incompatible with ' filename' - if both are |
1157
- | | present, a ``ValueError `` is raised. |
1159
+ | | incompatible with * filename * - if both |
1160
+ | | are present, a ``ValueError `` is raised. |
1158
1161
+--------------+---------------------------------------------+
1159
- | `` handlers `` | If specified, this should be an iterable of |
1162
+ | * handlers * | If specified, this should be an iterable of |
1160
1163
| | already created handlers to add to the root |
1161
1164
| | logger. Any handlers which don't already |
1162
1165
| | have a formatter set will be assigned the |
1163
1166
| | default formatter created in this function. |
1164
1167
| | Note that this argument is incompatible |
1165
- | | with ' filename' or ' stream' - if both are |
1166
- | | present, a ``ValueError `` is raised. |
1168
+ | | with * filename * or * stream * - if both |
1169
+ | | are present, a ``ValueError `` is raised. |
1167
1170
+--------------+---------------------------------------------+
1168
1171
1169
1172
.. versionchanged :: 3.2
0 commit comments