starship / log.py
curry tang
add logger
d9cc5c0
raw
history blame contribute delete
246 Bytes
import logging
logging.basicConfig(
level=logging.INFO, # 设置日志级别
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
handlers=[
logging.FileHandler('app.log'),
logging.StreamHandler(),
]
)