logging defects