1.修改log文件名。

This commit is contained in:
facat 2019-06-26 20:31:08 +08:00
parent d05a5f7373
commit 17a5f5b43e
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ _formatter = logging.Formatter("%(asctime)s : %(name)s : %(levelname)s : %(messa
_formatter.converter = _custom_time
streamHd.setFormatter(_formatter)
_main_dir = find_main()
_log_file_path = "{0}/log/fund_log.log".format(_main_dir)
_log_file_path = "{0}/log/info.log".format(_main_dir)
rotatingFd = RotatingFileHandler(_log_file_path, maxBytes=8000 * 1024, backupCount=10)
rotatingFd.setFormatter(_formatter)