Class NameAbbreviator.MaxElementAbbreviator

java.lang.Object
org.apache.logging.log4j.core.pattern.NameAbbreviator
org.apache.logging.log4j.core.pattern.NameAbbreviator.MaxElementAbbreviator
Enclosing class:
NameAbbreviator

private static class NameAbbreviator.MaxElementAbbreviator extends NameAbbreviator
Abbreviator that drops starting path elements.
  • Field Details

  • Constructor Details

    • MaxElementAbbreviator

      public MaxElementAbbreviator(int count, NameAbbreviator.MaxElementAbbreviator.Strategy strategy)
      Create new instance.
      Parameters:
      count - maximum number of path elements to drop or output.
      strategy - drop or retain
  • Method Details

    • abbreviate

      public void abbreviate(String original, StringBuilder destination)
      Abbreviate name.
      Specified by:
      abbreviate in class NameAbbreviator
      Parameters:
      original - The String to abbreviate.
      destination - the buffer to write the abbreviated name into