Spaces:
Running
Running
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() | |