Class 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 Detail

      • UpperLookup

        public UpperLookup()
    • Method Detail

      • 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.