Skip to content

Rejuvenate log levels#507

Closed
khatchad wants to merge 1 commit into
bcgit:masterfrom
ponder-lab:cws_6000_ifcatch
Closed

Rejuvenate log levels#507
khatchad wants to merge 1 commit into
bcgit:masterfrom
ponder-lab:cws_6000_ifcatch

Conversation

@khatchad
Copy link
Copy Markdown

@khatchad khatchad commented Apr 29, 2019

Introduction

We are in the process of evaluating our research prototype Eclipse plug-in that "rejuvenates" log statement levels based on how "interesting" the enclosing methods are to the developers. The assumption is that methods that are worked on more and more recently by developers should have higher log levels (e.g., INFO as compared to FINEST). Our end goal is to reduce information overload, as well as alleviate developers from manually making log level changes.

The transformation decision is made by analyzing the "degree of interest" (DOI) values of enclosing methods for logging invocations. DOI value is a kind of real number for a program element which shows how developers are interested in it. It is computed from the interaction events between developer and element, such as developer edits the element. In this project, we compute the DOI using the project's git history.

We are looking for feedback on our tool from developers. If you can, we would appreciate if you can comment on each of the transformations in the case that this PR is not accepted. Of course, we would also love to contribute to your project.

Settings

We have several analysis settings . We can vary these settings and rerun our if you desire. The settings we are using in this pull request are:

  • Treat CONFIG, WARNING, and SEVERE levels as a category and not a traditional level, i.e., our tool ignores these log level.
  • Never lower the logging level of logging statements within catch blocks.
  • Avoid log wrapping by disregarding logging statements contained in if statements mentioning log levels.
  • The greatest number of commits evaluated: 6000.

The head at time of analysis was: 4b133f1

@khatchad khatchad changed the title Rejuvenate log levels. Rejuvenate log levels Apr 29, 2019
@yiming-tang-cs
Copy link
Copy Markdown

This PR is outdated. We will submit a new one with a newer version of our tool.

@khatchad
Copy link
Copy Markdown
Author

Superseded by #624.

@khatchad khatchad closed this Nov 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants