Class JndiLookup

    • Field Summary

      • Fields inherited from interface org.apache.logging.log4j.core.lookup.StrLookup

        CATEGORY
    • Constructor Summary

      Constructors 
      Constructor Description
      JndiLookup()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String lookup​(LogEvent event, java.lang.String key)
      Looks up the value of the JNDI resource.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JndiLookup

        public JndiLookup()
    • Method Detail

      • lookup

        public java.lang.String lookup​(LogEvent event,
                                       java.lang.String key)
        Looks up the value of the JNDI resource.
        Parameters:
        event - The current LogEvent (is ignored by this StrLookup).
        key - the JNDI resource name to be looked up, may be null
        Returns:
        The String value of the JNDI resource.