title: How to log failed message in masstransit?
body: <p>I'm looking for a good solution to log failed message, right after retry limit is exceeded, without having a deal with error queue. What I've found so far:</p>
  
  <ul>
  <li>I can inherit from <em>InMemoryInboundMessageTracker</em> and override <em>IsRetryLimitExceeded</em>, but at this point there no information about message itself except id.</li>
  <li>I can implement <em>IInboundMessageInterceptor</em> and get <em>IConsumeContext</em> in <em>Pre/PostDispatch</em>, but at this point there no information about success/fail.</li>
  </ul>
  
  <p>So as a solution, I can get <em>IConsumeContext</em> in <em>PreDispatch</em> put it in some sort of a cache then get it out of a cache in <em>IsRetryLimitExceeded</em> when retry limit is exceeded. </p>
  
  <p>Methods are called in such order: <em>IsRetryLimitExceeded -> PreDispatch -> PostDispatch</em></p>
  
  <p>So I can't find a good place to remove successfully processed message from a cache.</p>
  
  <p>Of course I can use a cache with restricted size but this whole solution seems to be weird.</p>
  
  <p>Any thoughts on this matter would be appreciated. </p>