Github user olegz commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/165#discussion_r49470011
  
    --- Diff: 
nifi-mock/src/main/java/org/apache/nifi/util/MockProcessorLog.java ---
    @@ -16,20 +16,57 @@
      */
     package org.apache.nifi.util;
     
    +import java.util.List;
    +
     import org.apache.nifi.logging.ProcessorLog;
     import org.slf4j.Logger;
     import org.slf4j.LoggerFactory;
     
     public class MockProcessorLog implements ProcessorLog {
     
    -    private final Logger logger;
    +    private final CapturingLogger logger;
         private final Object component;
     
         public MockProcessorLog(final String componentId, final Object 
component) {
    -        this.logger = LoggerFactory.getLogger(component.getClass());
    +        this.logger = new 
CapturingLogger(LoggerFactory.getLogger(component.getClass()));
    --- End diff --
    
    Also, there may be a simpler way to do what I believe you are trying. Just 
look at here 
https://github.com/apache/nifi/pull/167/files#diff-d4270631731d05831ae336a5e6e50ad2R54.
 NOTE: that wit this approach you'll get access to the entire message after its 
being formatted, thus validating values in {..}


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to