mirror of
https://github.com/python/cpython
synced 2024-09-19 14:31:27 +00:00
Added minor clarification in logging HOWTO.
This commit is contained in:
parent
dd799d2e32
commit
b1a92a4c89
|
@ -122,7 +122,8 @@ Logging to a file
|
|||
^^^^^^^^^^^^^^^^^
|
||||
|
||||
A very common situation is that of recording logging events in a file, so let's
|
||||
look at that next::
|
||||
look at that next. Be sure to try the following in a newly-started Python
|
||||
interpreter, and don't just continue from the session described above::
|
||||
|
||||
import logging
|
||||
logging.basicConfig(filename='example.log',level=logging.DEBUG)
|
||||
|
|
Loading…
Reference in a new issue