Class LowerLookup

  • All Implemented Interfaces:
    StrLookup

    @Plugin(name="lower",
            category="Lookup")
    public class LowerLookup
    extends java.lang.Object
    implements StrLookup
    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​(java.lang.String key)
      Converts the "key" to lower case.
      java.lang.String lookup​(LogEvent event, 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
    • Constructor Detail

      • LowerLookup

        public LowerLookup()
    • Method Detail

      • lookup

        public java.lang.String lookup​(java.lang.String key)
        Converts the "key" to lower case.
        Specified by:
        lookup in interface StrLookup
        Parameters:
        key - the key to be looked up, may be null
        Returns:
        The value associated with the key.
      • lookup

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