equalWithMargin for log