Class SpringLookup

  • java.lang.Object
    • org.apache.logging.log4j.spring.boot.SpringLookup
  • All Implemented Interfaces:
    org.apache.logging.log4j.core.config.LoggerContextAware, org.apache.logging.log4j.core.lookup.StrLookup


    @Plugin(name="spring",
            category="Lookup")
    public class SpringLookup
    extends java.lang.Object
    implements org.apache.logging.log4j.core.config.LoggerContextAware, org.apache.logging.log4j.core.lookup.StrLookup
    Lookup for Spring properties.
    • Field Summary

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

        CATEGORY
    • Constructor Summary

      Constructors 
      Constructor Description
      SpringLookup​()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String lookup​(java.lang.String key)  
      java.lang.String lookup​(org.apache.logging.log4j.core.LogEvent event, java.lang.String key)  
      void setLoggerContext​(org.apache.logging.log4j.core.LoggerContext loggerContext)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.logging.log4j.core.lookup.StrLookup

        evaluate, evaluate
    • Constructor Detail

      • SpringLookup

        public SpringLookup​()
    • Method Detail

      • lookup

        public java.lang.String lookup​(java.lang.String key)
        Specified by:
        lookup in interface org.apache.logging.log4j.core.lookup.StrLookup
      • lookup

        public java.lang.String lookup​(org.apache.logging.log4j.core.LogEvent event,
                                       java.lang.String key)
        Specified by:
        lookup in interface org.apache.logging.log4j.core.lookup.StrLookup
      • setLoggerContext

        public void setLoggerContext​(org.apache.logging.log4j.core.LoggerContext loggerContext)
        Specified by:
        setLoggerContext in interface org.apache.logging.log4j.core.config.LoggerContextAware

Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.