Print Email Facebook Twitter Recommending Log Placement Based on Code Vocabulary Title Recommending Log Placement Based on Code Vocabulary Author Lyrakis, Kostas (TU Delft Electrical Engineering, Mathematics and Computer Science; TU Delft Software Engineering; TU Delft Software Technology) Contributor Barros Cândido, J. (mentor) Aniche, Maurício (mentor) Katsifodimos, A (graduation committee) Degree granting institution Delft University of Technology Programme Computer Science and Engineering Project CSE3000 Research Project Date 2021-07-02 Abstract Logging is a common practice of vital importance that enables developers to collect runtime information from a system. This information is then used to monitor a system's performance as it runs in production and to detect the cause of system failures. Besides its importance, logging is still a manual and difficult process. Developers rely on their experience and domain expertise in order to decide where to put log statements. In this paper, we tried to automatically suggest log placement by treating code as plain text that is derived from a vocabulary. Intuitively, we believe that the Code Vocabulary can indicate whether a code snippet should be logged or not. In order to validate this hypothesis, we trained machine learning models based solely on the Code Vocabulary in order to suggest log placement at method level. We also studied which words of the Code Vocabulary are more important when it comes to deciding where to put log statements. We evaluated our experiments on three open source systems and we found that i) The Code Vocabulary is a great source of training data when it comes to suggesting log placement at method level, ii) Classifiers trained solely on Vocabulary data are hard to interpret as there are no words in the Code Vocabulary significantly more valuable than others. Subject Log RecommendationCode VocabularyMachine LearningEmpirical Software Engineering To reference this document use: http://resolver.tudelft.nl/uuid:6c76c94e-2b89-4712-9125-ccc100f764b5 Part of collection Student theses Document type bachelor thesis Rights © 2021 Kostas Lyrakis Files PDF log_recommendation_paper.pdf 289.47 KB Close viewer /islandora/object/uuid:6c76c94e-2b89-4712-9125-ccc100f764b5/datastream/OBJ/view