| 1234567891011121314151617 | #!/usr/bin/env python3# -*- coding: utf-8 -*-from Ansjer.config import BASE_DIRclass LogUtil:    @staticmethod    def write_log(file_path=None, log=''):        if not file_path:            file_path = '/'.join((BASE_DIR, 'static/test.log'))        file = open(file_path, 'a+')        file.write(log)        file.write('\n')        file.flush()        file.close()
 |