mirror of https://github.com/python/cpython
use correct name
This commit is contained in:
parent
ba4d480776
commit
c4d39b2507
|
@ -1782,7 +1782,7 @@ handler type) for messages from different processes to get mixed up.
|
||||||
Below is an example session with logging turned on::
|
Below is an example session with logging turned on::
|
||||||
|
|
||||||
>>> import multiprocessing, logging
|
>>> import multiprocessing, logging
|
||||||
>>> logger = multiprocessing.getLogger()
|
>>> logger = multiprocessing.get_logger()
|
||||||
>>> logger.setLevel(logging.INFO)
|
>>> logger.setLevel(logging.INFO)
|
||||||
>>> logger.warning('doomed')
|
>>> logger.warning('doomed')
|
||||||
[WARNING/MainProcess] doomed
|
[WARNING/MainProcess] doomed
|
||||||
|
|
Loading…
Reference in New Issue