added support for logging outgoing traffic