mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Replaced some tabs with spaces in verbatim section.
This commit is contained in:
parent
ea271f2d5e
commit
e3c330b42a
1 changed files with 7 additions and 7 deletions
|
@ -397,9 +397,9 @@ the example below:
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
logging.basicConfig(level=logging.DEBUG,
|
logging.basicConfig(level=logging.DEBUG,
|
||||||
format='%(asctime)s %(levelname)s %(message)s',
|
format='%(asctime)s %(levelname)s %(message)s',
|
||||||
filename='/tmp/myapp.log',
|
filename='/tmp/myapp.log',
|
||||||
filemode='w')
|
filemode='w')
|
||||||
logging.debug('A debug message')
|
logging.debug('A debug message')
|
||||||
logging.info('Some information')
|
logging.info('Some information')
|
||||||
logging.warning('A shot across the bows')
|
logging.warning('A shot across the bows')
|
||||||
|
@ -444,10 +444,10 @@ To change the date/time format, you can pass an additional keyword parameter,
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
logging.basicConfig(level=logging.DEBUG,
|
logging.basicConfig(level=logging.DEBUG,
|
||||||
format='%(asctime)s %(levelname)-8s %(message)s',
|
format='%(asctime)s %(levelname)-8s %(message)s',
|
||||||
datefmt='%a, %d %b %Y %H:%M:%S',
|
datefmt='%a, %d %b %Y %H:%M:%S',
|
||||||
filename='/temp/myapp.log',
|
filename='/temp/myapp.log',
|
||||||
filemode='w')
|
filemode='w')
|
||||||
logging.debug('A debug message')
|
logging.debug('A debug message')
|
||||||
logging.info('Some information')
|
logging.info('Some information')
|
||||||
logging.warning('A shot across the bows')
|
logging.warning('A shot across the bows')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue