File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -332,10 +332,10 @@ Suppose you configure logging with the following JSON:
332
332
}
333
333
}
334
334
335
- This configuration does *almost * what we want, except that ``sys.stdout `` would
336
- show messages of severity ``ERROR `` and above as well as `` INFO `` and
337
- `` WARNING `` messages. To prevent this, we can set up a filter which excludes
338
- those messages and add it to the relevant handler. This can be configured by
335
+ This configuration does *almost * what we want, except that ``sys.stdout `` would show messages
336
+ of severity ``ERROR `` and only events of this severity and higher will be tracked
337
+ as well as `` INFO `` and `` WARNING `` messages. To prevent this, we can set up a filter which
338
+ excludes those messages and add it to the relevant handler. This can be configured by
339
339
adding a ``filters `` section parallel to ``formatters `` and ``handlers ``:
340
340
341
341
.. code-block :: json
Original file line number Diff line number Diff line change @@ -89,9 +89,8 @@ described below (in increasing order of severity):
89
89
| | itself may be unable to continue running. |
90
90
+--------------+---------------------------------------------+
91
91
92
- The default level is ``WARNING ``, which means that only events of this level
93
- and above will be tracked, unless the logging package is configured to do
94
- otherwise.
92
+ The default level is ``WARNING ``, which means that only events of this severity and higher
93
+ will be tracked, unless the logging package is configured to do otherwise.
95
94
96
95
Events that are tracked can be handled in different ways. The simplest way of
97
96
handling tracked events is to print them to the console. Another common way
You can’t perform that action at this time.
0 commit comments