Assessing and Improving the Effectiveness of Logs for the Analysis of Software Faults