log compare