Logging Format

Is there a way to get the attribute function and lineno in a custom log without hardcoding it? I have a log called test log that I use for debugiging and I’d like it to give more information without adding __function__ to every log call.

self.log("__function__: Something", level='DEBUG') 

Trying format: "{asctime} {levelname} {appname} {funcName} {lineno}: {message}" just gives me the loggers function and line number.

Also the documentation states that the default log is {asctime} {levelname} {appname:<20}: {message} but if you actually use that the <20 part causes huge spaces to appear in the log.