Blauschirm / wkvw2sipgate

Crawls the ekvw phone data and transfers it into sipgate
0 stars 0 forks source link

Log Modul verwenden für log rotation #1

Closed Blauschirm closed 5 years ago

Blauschirm commented 5 years ago

Cocomolch4000 commented 5 years ago

also soll der logwriter jede schicht eine neue logdatei erstellenb und die alte archivieren?

nitzel commented 5 years ago
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 ...
nitzel commented 5 years ago

Closed by d668a353682e9faea093851998845d63d6793221 6b92dd2efd93a55d605bc054519b776f744f4f50 7db7440516321f6c3b813960c2f1f2c9932e19f6