Python has two main string formatting options % and str.format. logging module has a lazy feature.
logging.debug('The value is %s', huge_arg)
This does not construct the string if the log line is not going to be print. However, this feature works only if the sting uses old style % format. Is there a way to use str.format with this lazy feature? There could be a named arg like:
logging.debug('The value is {}', fmt_arg=(huge_arg))