Why spdlog not print in async function
import asyncio from pathlib import Path import spdlog as spd import asyncio import logging async def A(): asyncio.create_task(B()) while True: await asyncio.sleep(1) async def B(): logger = spd.DailyLogger(name = ‘B’, filename = ‘B.log’, hour = 0, minute = 0, async_mode=True) logger.set_level(spd.LogLevel.INFO) # logging.basicConfig(level=logging.INFO, filename=’B.log’, filemode=’w’) # logger = logging.getLogger(‘B’) while True: logger.info(‘B’) await asyncio.sleep(1) if […]