vlff李飞飞
update md
2319518
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()