Automated Evolution of Feature Logging Statement Levels Using Git Histories and Degree of Interest

Yiming Tang, Allan Spektor, Raffi Khatchadourian, Mehdi Bagherzadeh
4/15/2021
cs.SE

Official code: ponder-lab/Rejuvenate-Logging-Levels (2 stars, Java, EPL-2.0, last commit 2022-11-07).

Abstract

Logging -- used for system events and security breaches to describe more informational yet essential aspects of software features -- is pervasive. Given the high transactionality of today's software, logging effectiveness can be reduced by information overload.

Show full abstract

Log levels help alleviate this problem by correlating a priority to logs that can be later filtered. As software evolves, however, levels of logs documenting surrounding feature implementations may also require modification as features once deemed important may have decreased in urgency and vice-versa. We present an automated approach that assists developers in evolving levels of such (feature) logs. The approach, based on mining Git histories and manipulating a degree of interest (DOI) model, transforms source code to revitalize feature log levels based on the "interestingness" of the surrounding code. Built upon JGit and Mylyn, the approach is implemented as an Eclipse IDE plug-in and evaluated on 18 Java projects with $\sim$3 million lines of code and $\sim$4K log statements. Our tool successfully analyzes 99.22% of logging statements, increases log level distributions by $\sim$20%, and increases the focus of logs in bug fix contexts $\sim$83% of the time. Moreover, pull (patch) requests were integrated into large and popular open-source projects. The results indicate that the approach is promising in assisting developers in evolving feature log levels.

View on arXivView PDF

Code Implementations(1)

EPL-2.0

An Eclipse plug-in research prototype for automatically rejuvenating log statement levels using degree of interest

23JavaApr 23, 20184 years agoEPL-2.0
javaloggerloggingloglevelloglevel-plugin+1 more

Similar Papers

Cite this paper

@article{tang2021automated,
  title  = {Automated Evolution of Feature Logging Statement Levels Using Git Histories and Degree of Interest},
  author = {Yiming Tang and Allan Spektor and Raffi Khatchadourian and Mehdi Bagherzadeh},
  year   = {2021},
  eprint = {2104.07736},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.07736}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2104.07736.svg)](https://codeofpaper.com/paper/2104.07736)

Discussion