1import time
2
3from loguru import logger
4from tqdm import tqdm
5
6logger.remove()
7logger.add(lambda msg: tqdm.write(msg, end=""))
8
9logger.info("Initializing")
10
11for x in tqdm(range(100)):
12 logger.info("Iterating #{}", x)
13 time.sleep(0.1)
14