title: Is there a component for logging messages with Spring Integration using Java DSL?
body: <p>I'm using Spring Integration to develop my integration scenarios. When I have to write some logs to provide some information, I write this way:</p>
  
  <pre><code>@Bean
  IntegrationFlow blacklist(BlacklistService service) {
      return m -&gt; m
              .wireTap(f -&gt; f.handle(t -&gt; log.info("Adding email source address in blacklist...")))
              .&lt;MessageHandlingException, Blacklist&gt;transform(p -&gt; SourceBlacklist.of((Email) p.getFailedMessage().getHeaders().get(IntegrationConstants.MailSender.EMAIL)))
              .wireTap(f -&gt; f.handle(t -&gt; log.info("Email source address added to blacklist.")))
              .handle(service, "voidSave");
  }
  </code></pre>
  
  <p>I'm using a wiretap with lambda and handle to log my messages. Is there a better way to write log with Spring Integration using Java DSL?</p>
  
  <p>Thanks.</p>