Generalizing logging in glock server