logging of socket data