agent: update client.Log for new encoding