Class FormatStringParser

java.lang.Object
org.jboss.logmanager.formatters.FormatStringParser

public final class FormatStringParser extends Object
A parser which can translate a log4j-style format string into a series of FormatStep instances.
  • Field Details

    • pattern

      private static final Pattern pattern
      The regular expression for format strings. Ain't regex grand?
  • Constructor Details

    • FormatStringParser

      private FormatStringParser()
  • Method Details

    • getSteps

      public static FormatStep[] getSteps(String formatString, ColorMap colors)
      Compile a format string into a series of format steps.
      Parameters:
      formatString - the format string
      Returns:
      the format steps