Automatic recommendation to appropriate log levels. (29th November 2019)
- Record Type:
- Journal Article
- Title:
- Automatic recommendation to appropriate log levels. (29th November 2019)
- Main Title:
- Automatic recommendation to appropriate log levels
- Authors:
- Kim, Taeyoung
Kim, Suntae
Park, Sooyong
Park, YoungBeom - Other Names:
- Bishop Judith guestEditor.
Cooper Kendra M.L. guestEditor.
Sharp Helen guestEditor.
Whalen Michael guestEditor. - Abstract:
- Summary: A log statement is one of the key tactics for a developer to record and monitor important run‐time behaviors of our system in a development phase and a maintenance phase. It composes of a message for stating log contents, and a log level (eg, debug or warn ) to denote the severity of a message and controlling its visibility at run time. In spite of its usefulness, a developer does not tend to deeply consider which log level is appropriate in writing source code, which causes the system to be unmaintainable. To address this issue, this paper proposes an automatic approach to validating the appropriateness of the log level in consideration of the semantic and syntactic features and recommending a proper alternative log level. We first build the semantic feature vector to quantify the semantic similarity among application log messages using the word vector space, and the syntactic feature vector to capture the application context that surrounds the log statement. Based on the feature vectors and machine learning techniques, the log level is automatically validated, and an alternative log level is recommended if the log level is invalid. For the evaluation, we collected 22 open‐source projects from three application domains, and obtained the 77% of precision and 75% of recall in validating the log levels. Also, our approach showed 6% higher accuracy than that of the developer group who has 7 to 8 years of work experience, and 72% of the developers accepted ourSummary: A log statement is one of the key tactics for a developer to record and monitor important run‐time behaviors of our system in a development phase and a maintenance phase. It composes of a message for stating log contents, and a log level (eg, debug or warn ) to denote the severity of a message and controlling its visibility at run time. In spite of its usefulness, a developer does not tend to deeply consider which log level is appropriate in writing source code, which causes the system to be unmaintainable. To address this issue, this paper proposes an automatic approach to validating the appropriateness of the log level in consideration of the semantic and syntactic features and recommending a proper alternative log level. We first build the semantic feature vector to quantify the semantic similarity among application log messages using the word vector space, and the syntactic feature vector to capture the application context that surrounds the log statement. Based on the feature vectors and machine learning techniques, the log level is automatically validated, and an alternative log level is recommended if the log level is invalid. For the evaluation, we collected 22 open‐source projects from three application domains, and obtained the 77% of precision and 75% of recall in validating the log levels. Also, our approach showed 6% higher accuracy than that of the developer group who has 7 to 8 years of work experience, and 72% of the developers accepted our recommendation. … (more)
- Is Part Of:
- Software, practice & experience. Volume 50:Number 3(2020)
- Journal:
- Software, practice & experience
- Issue:
- Volume 50:Number 3(2020)
- Issue Display:
- Volume 50, Issue 3 (2020)
- Year:
- 2020
- Volume:
- 50
- Issue:
- 3
- Issue Sort Value:
- 2020-0050-0003-0000
- Page Start:
- 189
- Page End:
- 209
- Publication Date:
- 2019-11-29
- Subjects:
- log level -- log message -- log statement -- machine Learning -- semantic & syntactic feature vector
Computer software -- Periodicals
Computer programming -- Periodicals
Computer programs -- Periodicals
005.3 - Journal URLs:
- http://onlinelibrary.wiley.com/ ↗
- DOI:
- 10.1002/spe.2771 ↗
- Languages:
- English
- ISSNs:
- 0038-0644
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library DSC - 8321.453000
British Library DSC - BLDSS-3PM
British Library STI - ELD Digital store - Ingest File:
- 12692.xml