Class MCRConfigurationLookup

java.lang.Object
org.mycore.common.log4j2.lookups.MCRConfigurationLookup
All Implemented Interfaces:
org.apache.logging.log4j.core.lookup.StrLookup

@Plugin(name="mcrcfg", category="Lookup") public class MCRConfigurationLookup extends Object implements org.apache.logging.log4j.core.lookup.StrLookup
Lookup a value in MCRConfiguration2. Uses key as property key.
Author:
Thomas Scheffler
  • Constructor Details

    • MCRConfigurationLookup

      public MCRConfigurationLookup()
  • Method Details

    • lookup

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

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