python3不用import logging,因为logging已经内置了。
参考:python - Logging module not working with Python3 - Stack Overflow
报错:RecursionError: maximum recursion depth exceeded while calling a Python object
# python3 运行 import logging报错
Traceback (most recent call last):
File "/home/xxx/folder1/utee/misc.py", line 32, in info
self.init('/tmp', 'tmp.log')
File "/home/xxx/folder1/utee/misc.py", line 22, in init
print(log_file)
File "/home/xxx