Class LowerLookup

  • All Implemented Interfaces:
    StrLookup

    @Plugin(name="lower",
            category="Lookup")
    public class LowerLookup
    extends AbstractLookup
    Converts values to lower case. The passed in "key" should be the value of another lookup.
    • Field Summary

      • Fields inherited from interface org.apache.logging.log4j.core.lookup.StrLookup

        CATEGORY
    • Constructor Summary

      Constructors 
      Constructor Description
      LowerLookup()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String lookup​(LogEvent ignored, java.lang.String key)
      Converts the "key" to lower case.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.logging.log4j.core.lookup.StrLookup

        evaluate
    • Constructor Detail

      • LowerLookup

        public LowerLookup()
    • Method Detail

      • lookup

        public java.lang.String lookup​(LogEvent ignored,
                                       java.lang.String key)
        Converts the "key" to lower case.
        Parameters:
        key - the key to be looked up, may be null
        ignored - The current LogEvent.
        Returns:
        The value associated with the key.