View Single Post
Old 06-14-2023, 05:59 AM   #1
otakutyrant
Member
otakutyrant began at the beginning.
 
Posts: 13
Karma: 10
Join Date: May 2023
Device: Kindle
My logging does not output filename and funcName

I use this code in my __init__.py of New Words Loss:https://github.com/otakutyrant/New-Words-Loss

FORMAT = "[%(filename)s->%(funcName)s():]%(levelname)s: %(message)s"
logging.basicConfig(format=FORMAT, level=logging.INFO)

But strangely, when I run the plugin: `calibre-debug -s; calibre-customize -b .; calibre`, all logging.info only prints levelname and message but filename and funcName, like this: INFO:root:Infering New Words Loss in 1 books.
otakutyrant is offline   Reply With Quote