{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,2,19]],"date-time":"2025-02-19T18:10:21Z","timestamp":1739988621889,"version":"3.37.3"},"reference-count":0,"publisher":"IOS Press","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":[],"published-print":{"date-parts":[[2015]]},"abstract":"<jats:p>In this paper, we investigate the evaluation of the logs in software source code. Logs usually play the critical role in detecting, tracing and removing bugs of the software in the software development process. More importantly, after the delivery to the customers, software developers have to rely on the log records to locate bugs other than reproduce the software defects in the customer's environment. Therefore, there are strong quality and efficiency demands for good logs in the software source code. We model the source code as a hierarchy of graph models by presenting the relationships of different components of the source code, namely function call stacks, control flows and data flows. Then the fundamental metrics can be generated by the static analysis of these models and the metrics will be further processed to form the measurements of the log statements in the following dimensions: correctness, efficiency, maintainability, extensibility and conformity. We use a few open source projects to demonstrate the effectiveness of the proposed approach and discuss the directions of the future research.<\/jats:p>","DOI":"10.3233\/978-1-61499-544-9-214","type":"book-chapter","created":{"date-parts":[[2025,2,19]],"date-time":"2025-02-19T17:19:26Z","timestamp":1739985566000},"source":"Crossref","is-referenced-by-count":0,"title":["Measuring and Evaluating Source Code Logs Using Static Code Analyzer"],"prefix":"10.3233","author":[{"family":"Shen Gang","sequence":"additional","affiliation":[]},{"family":"Luo Fan","sequence":"additional","affiliation":[]},{"family":"Hong Gang","sequence":"additional","affiliation":[]}],"member":"7437","container-title":["Advances in Transdisciplinary Engineering","Transdisciplinary Lifecycle Analysis of Systems"],"original-title":[],"deposited":{"date-parts":[[2025,2,19]],"date-time":"2025-02-19T17:34:12Z","timestamp":1739986452000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.medra.org\/servlet\/aliasResolver?alias=iospressISBN&isbn=978-1-61499-543-2&spage=214&doi=10.3233\/978-1-61499-544-9-214"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2015]]},"references-count":0,"URL":"https:\/\/doi.org\/10.3233\/978-1-61499-544-9-214","relation":{},"ISSN":["2352-751X"],"issn-type":[{"value":"2352-751X","type":"print"}],"subject":[],"published":{"date-parts":[[2015]]}}}