https://mp.weixin.qq.com/s/hy68s610B9GbL_wgwTn7nA

更优美的python日志管理库Loguru

 

Asynchronous, Thread-safe, Multiprocess-safe

All sinks added to the logger are thread-safe by default. They are not multiprocess-safe, but you can enqueue the messages to ensure logs integrity. This same argument can also be used if you want async logging.

logger.add("somefile.log", enqueue=True)

Coroutine functions used as sinks are also supported and should be awaited with complete().

 

相关文章:

  • 2021-11-20
  • 2022-12-23
  • 2021-11-20
  • 2021-12-03
  • 2022-12-23
  • 2023-03-27
  • 2022-12-23
猜你喜欢
  • 2022-12-24
  • 2021-10-28
  • 2021-08-03
  • 2022-12-23
  • 2021-10-12
  • 2021-11-21
  • 2022-12-23
相关资源
相似解决方案