Class PropertiesRewritePolicy

  • All Implemented Interfaces:
    RewritePolicy

    @Plugin(name="PropertiesRewritePolicy",
            category="Core",
            elementType="rewritePolicy",
            printObject=true)
    public final class PropertiesRewritePolicy
    extends java.lang.Object
    implements RewritePolicy
    This policy modifies events by replacing or possibly adding keys and values to the MapMessage.
    • Field Detail

      • LOGGER

        protected static final Logger LOGGER
        Allows subclasses access to the status logger without creating another instance.
    • Method Detail

      • rewrite

        public LogEvent rewrite​(LogEvent source)
        Rewrites the event.
        Specified by:
        rewrite in interface RewritePolicy
        Parameters:
        source - a logging event that may be returned or used to create a new logging event.
        Returns:
        The LogEvent after rewriting.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object