Class FrankPropertyLookupProvider

java.lang.Object
org.apache.logging.log4j.core.lookup.AbstractLookup
org.frankframework.logging.FrankPropertyLookupProvider
All Implemented Interfaces:
org.apache.logging.log4j.core.lookup.StrLookup

@Plugin(name="ff", category="Lookup") public class FrankPropertyLookupProvider extends org.apache.logging.log4j.core.lookup.AbstractLookup
Add the Frank property resolver to the log configuration context. Properties starting with ff: will be substituted via this LookupProvider. NOTE: The use of Lombok is not allowed, this may break annotation processing! This is required now that package scanning is no longer allowed. Should not depend on any (util) classes that use a logger!
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static class 
    Sort entries `EXTERNAL CLASSPATH` > `WEB-INF/CLASSES` > `JAR FILES`.
  • Field Summary

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

    CATEGORY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected static @NonNull Properties
     
    protected static @Nullable URL
    findResource(String filename)
    Scan the classpath and find the correct resource to use.
    lookup(org.apache.logging.log4j.core.LogEvent ignored, String key)
     

    Methods inherited from class org.apache.logging.log4j.core.lookup.AbstractLookup

    evaluate, lookup

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.logging.log4j.core.lookup.StrLookup

    evaluate
  • Constructor Details

  • Method Details

    • lookup

      public String lookup(org.apache.logging.log4j.core.LogEvent ignored, String key)
    • computeProperties

      protected static @NonNull Properties computeProperties() throws IOException
      Throws:
      IOException
    • findResource

      protected static @Nullable URL findResource(String filename) throws IOException
      Scan the classpath and find the correct resource to use. See the UrlLocationComparator for the order.
      Throws:
      IOException