Measuring the logging quality of a computer program
First Claim
1. A method for quantifying a quality of software logging, said method comprising:
- under control of one or more computer systems configured with executable instructions,determining a logging behavior value for each method of a plurality of methods in source code of a software program, the logging behavior value quantifying a logging behavior of said each method;
selecting a first method from the plurality of methods that is identified as exhibiting an ideal logging behavior;
determining, for each method other than the first method, a root mean square deviation (RMSD) between the logging behavior value of said each method and the logging behavior value of the first method; and
computing an overall log quality score for the software program based at least in part on the RMSD of said each method in the plurality of methods.
2 Assignments
0 Petitions
Accused Products
Abstract
Techniques are described for measuring or quantifying the logging behavior in the source code of a computer program. In particular, the techniques select a method identified as exhibiting the ideal logging behavior in a computer program and then compute the overall logging quality score for the entire computer program based on the deviation in logging behaviors between the selected method and all other methods in the source code of the project. This overall logging quality score can be compared to various benchmarks of existing projects with high logging quality. If the software logging quality is found to be low, various steps can be taken by the developers to improve the logging before the software release.
-
Citations
20 Claims
-
1. A method for quantifying a quality of software logging, said method comprising:
under control of one or more computer systems configured with executable instructions, determining a logging behavior value for each method of a plurality of methods in source code of a software program, the logging behavior value quantifying a logging behavior of said each method; selecting a first method from the plurality of methods that is identified as exhibiting an ideal logging behavior; determining, for each method other than the first method, a root mean square deviation (RMSD) between the logging behavior value of said each method and the logging behavior value of the first method; and computing an overall log quality score for the software program based at least in part on the RMSD of said each method in the plurality of methods. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
8. A computing system, comprising:
-
at least one processor; and memory including instructions that, when executed by the at least one processor, cause the computing system to; determine a logging behavior value for each method of a plurality of methods in source code of a software program, the logging behavior value quantifying a logging behavior of said each method; select a first method from the plurality of methods that is identified as exhibiting an ideal logging behavior; determine, for each method other than the first method, a root mean square deviation (RMSD) between the logging behavior value of said each method and the logging behavior value of the first method; and compute an overall log quality score for the software program based at least in part on the RMSD of said each method in the plurality of methods. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A non-transitory computer readable storage medium containing one or more sequences of instructions, the instructions when executed by one or more processors causing the one or more processors to execute a set of operations comprising:
-
determining a logging behavior value for each method of a plurality of methods in source code of a software program, the logging behavior value quantifying a logging behavior of said each method; selecting a first method from the plurality of methods that is identified as exhibiting an ideal logging behavior; determining, for each method other than the first method, a root mean square deviation (RMSD) between the logging behavior value of said each method and the logging behavior value of the first method; and computing an overall log quality score for the software program based at least in part on the RMSD of said each method in the plurality of methods. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification