Class LowerLookup

java.lang.Object
org.apache.logging.log4j.core.lookup.LowerLookup
All Implemented Interfaces:
StrLookup

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

    • LowerLookup

      public LowerLookup()
  • Method Details

    • lookup

      public String lookup(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 String lookup(LogEvent event, 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.