import nnloglog = nnlog.Logger('test.log',level='debug',backCount=5,when='s')log.debug('debug级别')# debug# info# warning# error