code: def get_tokens(self, format_string):
          
          return [t for t in self.tokenize_pattern.split(format_string) if t]
docs: Tokenize a logging format string.
  
          :param format_string: The logging format string.
          :returns: A list of strings with formatting directives separated from surrounding text.