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!
  • Constructor Details

  • Method Details

    • lookup

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

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

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