Debugging library for recording traffic passing trough network connections