standard_format = ' % (asctime) s -% (threadName) s:% (thread) d -日志名字:% (nombre) s -% (filename) s:% (lineno) d - ' \ ' % (levelname) s -% (mensaje) s ' simple_format = ' [% (levelname) s] [% (asctime) s] [% (filename) s:% (lineno) d]% (mensaje) s ' test_format = ' % (asctime) s]% (mensaje) s ' LOGGING_DIC = { ' versión ' : 1 , ' disable_existing_loggers ' : false, ' formateadores ' : { 'estándar' : { ' Formato ' : standard_format }, ' sencilla ' : { ' formato ' : simple_format }, ' prueba ' : { ' formato ' : test_format }, }, ' filtros ' : {}, ' manipuladores ' : { ' consola ' : { ' nivel ' : 'DEBUG ', ' Clase ' : ' logging.StreamHandler ' , ' formateador ' : ' sencilla ' }, ' por defecto ' : { ' nivel ' : ' DEBUG ' , ' clase ' : ' logging.handlers.RotatingFileHandler ' , ' MaxBytes ' : 1000 , 'backupCount ' : 5, ' Nombre de archivo ' : ' xxx.log ' , ' codifica ' : ' utf-8 ' , ' formateador ' : ' estándar ' }, ' otra ' : { ' nivel ' : ' DEBUG ' , ' clase ' : ' tala. FileHandler ' 'nombre de archivo ': ' Zzz.log ' , ' codificar ' : 'UTF-8 ' , ' formateador ' : ' Prueba ' }, }, ' Los madereros ' : { ' terminal de registro rápido y ' : { ' manipuladores ' : [ ' Consola ' , ' OTRO ' ], ' Nivel ' : 'DEBUG ' , ' Se propagan ' : Falso }, ' 终端提示' : { ' manipuladores ' : [ ' consola ' ,], ' nivel ' : ' DEBUG ' , ' Propagar ' : Falso }, '' : { ' manipuladores ' : [ ' por defecto '], ' nivel ' : 'DEBUG ', ' Propagar ' : Falso }, }, }