How to show the line number from the file invoking the logger, not the logger file itself?
How to show the line number from the file invoking the logger, not the logger file itself? Question: I have a custom logging class, which has the following format: log_format = "%(asctime)s.%(msecs)d %(levelname)-8s [%(processName)s] [%(threadName)s] %(filename)s:%(lineno)d — %(message)s" My project tree looks something like this: . ├── exceptions.py ├── logger.py ├── settings.py └── main.py In …