Class UpperLookup

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

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

    • UpperLookup

      public UpperLookup()
  • Method Details

    • lookup

      public String lookup(String key)
      Converts the "key" to upper 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 upper 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.