Studying and Suggesting Logging Locations in Code Blocks
Developers write logging statements to generate logs and record system execution behaviors to assist in debugging and software maintenance. However, there exists no practical guidelines on where to write logging statements. On one hand, adding too many logging statements may introduce superfluously trivial logs and performance overheads. On the other hand, logging too little may miss necessary runtime information. Thus, properly deciding the logging location is a challenging task and a finer-grained understanding of where to write logging statements is needed to assist developers in making logging decisions. In this paper, we conduct a comprehensive study to uncover guidelines on logging locations at the code block level. We analyze logging statements and their surrounding code by combining both deep learning techniques and manual investigations. From our preliminary results, we find that our deep learning models achieve over 90% in precision and recall when trained using the syntactic (e.g., nodes in abstract syntax tree) and semantic (e.g., variable names) features. However, cross-system models trained using semantic features only have 45.6% in precision and 73.2% in recall, while models trained using syntactic features still have over 90% precision and recall. Our current progress highlights that there is an implicit syntactic logging guideline across systems, and such information may be leveraged to uncover general logging guidelines.
Wed 8 JulDisplayed time zone: (UTC) Coordinated Universal Time change
17:10 - 18:00 | |||
17:10 50mPoster | Improving Bug Detection and Fixing via Code Representation Learning ACM Student Research Competition Yi Li New Jersey Institute of Technology, USA | ||
17:10 50mPoster | Automatic Generation of Simulink Models to Find Bugs in Cyber-Physical System Tool Chain using Deep Learning ACM Student Research Competition Sohil Lal Shrestha The University of Texas at Arlington DOI Pre-print | ||
17:10 50mPoster | Studying and Suggesting Logging Locations in Code Blocks ACM Student Research Competition Zhenhao Li Concordia University | ||
17:10 50mPoster | An Automated Framework For Gaming Platform To Test Multiple Games ACM Student Research Competition Zihe Song The University of Texas at Dallas | ||
17:10 50mPoster | Efficient test execution in End to End testing ACM Student Research Competition Cristian Augusto University of Oviedo | ||
17:10 50mPoster | An Empirical Study on the Evolution of Test Smell ACM Student Research Competition Dong Jae Kim Concordia University |