Class PluginLoggerContextVisitor

java.lang.Object
org.apache.logging.log4j.core.config.plugins.visitors.AbstractPluginVisitor<PluginConfiguration>
org.apache.logging.log4j.core.config.plugins.visitors.PluginLoggerContextVisitor
All Implemented Interfaces:
PluginVisitor<PluginConfiguration>

public class PluginLoggerContextVisitor extends AbstractPluginVisitor<PluginConfiguration>
PluginVisitor implementation for PluginConfiguration.
  • Constructor Details

    • PluginLoggerContextVisitor

      public PluginLoggerContextVisitor()
  • Method Details

    • visit

      public Object visit(Configuration configuration, Node node, LogEvent event, StringBuilder log)
      Description copied from interface: PluginVisitor
      Visits a Node to obtain a value for constructing a Plugin object.
      Parameters:
      configuration - the current Configuration.
      node - the current Node corresponding to the Plugin object being created.
      event - the current LogEvent that caused this Plugin object to be made (optional).
      log - the StringBuilder being used to build a debug message.
      Returns:
      the converted value to be used for Plugin creation.