Class CollapsedNameAbbreviator


  • public class CollapsedNameAbbreviator
    extends org.apache.logging.log4j.core.pattern.NameAbbreviator
    A NameAbbreviator that abbreviates packages until the name is short enough.
    • Constructor Detail

      • CollapsedNameAbbreviator

        public CollapsedNameAbbreviator​(int max)
        Creates a new abbreviator using the default delimiter.
        Parameters:
        max - The maximum name length.
      • CollapsedNameAbbreviator

        public CollapsedNameAbbreviator​(int max,
                                        char delimiter)
        Creates a new abbreviator using the default delimiter.
        Parameters:
        max - The maximum name length.
        delimiter - The character that separates words.
    • Method Detail

      • abbreviate

        public void abbreviate​(String original,
                               StringBuilder destination)
        Specified by:
        abbreviate in class org.apache.logging.log4j.core.pattern.NameAbbreviator