Commit 9afc63ed by zyy

roll

parent 31274960
...@@ -12,6 +12,7 @@ import time ...@@ -12,6 +12,7 @@ import time
def log(name="方大同"): def log(name="方大同"):
"""roll"""
logger = logging.getLogger(name) logger = logging.getLogger(name)
logger.level = logging.INFO logger.level = logging.INFO
log_name = time.strftime('%Y-%m-%d-%H-%M-%S',time.localtime())+".log" log_name = time.strftime('%Y-%m-%d-%H-%M-%S',time.localtime())+".log"
...@@ -24,4 +25,4 @@ def log(name="方大同"): ...@@ -24,4 +25,4 @@ def log(name="方大同"):
return logger return logger
log = log() log = log()
\ No newline at end of file
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