ff_li
目录调整
f67d239
raw
history blame
432 Bytes
import logging
def setup_logger(level=logging.INFO):
logger = logging.getLogger('qwen_agent_logger')
logger.setLevel(level)
handler = logging.StreamHandler()
handler.setLevel(level)
formatter = logging.Formatter(
'%(asctime)s - %(filename)s - %(lineno)d - %(levelname)s - %(message)s'
)
handler.setFormatter(formatter)
logger.addHandler(handler)
return logger
logger = setup_logger()