2019-06-21 07:48:16 INFO root - Slot date:'None'
2019-06-21 07:48:16 INFO root - Slot location: '大津市'
2019-06-21 07:48:16 INFO root - Mapped location:'Ōtsu'
2019-06-21 07:48:16 INFO root - Place and date: Ōtsu None
2019-06-21 07:48:16 INFO root - Place queried at get_forecaster_at_place:Ōtsu
我使用日志记录的方式:
import logging
logging.basicConfig(level=logging.INFO)
...
logging.info("...")
它只显示'root',而没有显示它来自哪个类或库,这很糟糕。
如何使其也显示日志记录源位置?