mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Merged minor documentation update from 3.3.
This commit is contained in:
commit
1b8b868b84
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue