Class ContextMapLookup

    • Constructor Detail

      • ContextMapLookup

        public ContextMapLookup()
    • Method Detail

      • lookup

        public String lookup​(String key)
        Looks up the value from the ThreadContext Map.
        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)
        Looks up the value from the ThreadContext Map.
        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.