title: NEFilterProvider record network activity
body: <p><a href="https://developer.apple.com/documentation/networkextension/nefilterprovider" rel="nofollow noreferrer">NEFilterProvider</a>, or more specifically its 2 subclasses <a href="https://developer.apple.com/documentation/networkextension/nefilterdataprovider" rel="nofollow noreferrer">NEFilterDataProvider</a> and <a href="https://developer.apple.com/documentation/networkextension/nefilterpacketprovider" rel="nofollow noreferrer">NEFilterPacketProvider</a>, has the functionality to allow or deny network activity. However, I couldn't find any way to log in the activity, for debugging purposes.</p>
  
  <p>I know the documentation says this:</p>
  
  <blockquote>
    <p>it runs in a very restrictive sandbox. The sandbox prevents the Filter
    Data Provider extension from moving network content outside of its
    address space by blocking all network access, IPC, and disk write
    operations.</p>
  </blockquote>
  
  <p>but is there any trick to log this anyway in debug mode? Maybe using <code>os_log</code> or something like that?</p>