Build logging into keepalive