Commit 2e097fe6 by cym

接口自动化框架V1.0.1

parent 1c573a9a
......@@ -15,7 +15,7 @@ import logging
def write_log():
logger = logging.getLogger(name="ccc")
logger.level = logging.NOTSET
log_path = os.path.join(os.path.dirname(os.path.dirname(__file__())), "report/log/ccc.log")
log_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), "report/log/ccc.log")
handler = logging.FileHandler(log_path, mode="a", encoding="utf-8")
format = logging.Formatter('%(asctime)s - %(filename)s[line:%(lineno)d] - %(levelname)s: %(message)s - %(name)s')
handler.setFormatter(format)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment