def regist_bat(app, log_name):
d = os.path.join(app.root_path, 'logs/%s_debug.log'% log_name)
e = os.path.join(app.root_path, 'logs/%s_error.log'% log_name)
path_list = {
'debug': d,
'error': e
}
common(path_list)
评论列表
文章目录