Class MessageFormatter

java.lang.Object
org.apache.commons.jcs3.log.MessageFormatter

public class MessageFormatter extends Object
Handles messages that consist of a format string conforming to java.text.MessageFormat. (Borrowed from log4j2)
  • Constructor Details

    • MessageFormatter

      public MessageFormatter(String messagePattern, Object... parameters)
      Constructs a message formatter.
      Parameters:
      messagePattern - the pattern for this message format
      parameters - The objects to format
    • MessageFormatter

      public MessageFormatter(String messagePattern, Supplier<?>... paramSuppliers)
      Constructs a message formatter.
      Parameters:
      messagePattern - the pattern for this message format
      paramSuppliers - An array of functions, which when called, produce the desired log message parameters.
  • Method Details