valid String template: '$asctime $level $message'
regex for string template in JsonFormatter.parse
:
....
elif isinstance(self._style, logging.StrFormatStyle):
formatter_style_pattern = re.compile(r"\{(.+?)\}", re.IGNORECASE)
...
would require the string template to be
'${asctime} ${level} ${message}'