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

      • LowerLookup

        public LowerLookup()
    • Method Detail

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