Closed Blauschirm closed 5 years ago
also soll der logwriter jede schicht eine neue logdatei erstellenb und die alte archivieren?
import logging
logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger('crawler')
logger.setLevel(logging.INFO)
logger.debug('Detailed debug information') # not logged
logger.info('Information about things that don`t happen too often') # logged
logger.warning('oh well, investigate next morning')
logging.error('whoopsie, investigate now! It`s 2am ...')
>> INFO:crawler:Information about things that don`t happen too often
>> WARNING:crawler:oh well, investigate next morning
>> ERROR:root:whoopsie, investigate now! It`s 2am ...
Closed by d668a353682e9faea093851998845d63d6793221 6b92dd2efd93a55d605bc054519b776f744f4f50 7db7440516321f6c3b813960c2f1f2c9932e19f6