日志记录,监控,便于定位bug
进行二次封装
import os
import logging
from scr ipts.handle_yaml import do_yaml
from scr ipts.handle_path import LOG_PATH
class HandleLog:
def __init__(self, name=None):
if name is None:
self.my_logger = logging.getLogger("test
前言
今天就简单的对日志做个封装,实际工作中直接拿去用吧
方法1
"""
------------------------------------
Time : 2019/5/22 8:12
Auth : linux超
File : logfile.py
IDE : PyCharm
Motto: Real warriors,dare to face the bleak warning,dare to face the incisive error!
----------------------