Using Deep Learning to Generate Complete Log Statements

01/13/2022
by   Antonio Mastropaolo, et al.
0

Logging is a practice widely adopted in several phases of the software lifecycle. For example, during software development log statements allow engineers to verify and debug the system by exposing fine-grained information of the running software. While the benefits of logging are undisputed, taking proper decisions about where to inject log statements, what information to log, and at which log level (e.g., error, warning) is crucial for the logging effectiveness. In this paper, we present LANCE (Log stAtemeNt reCommEnder), the first approach supporting developers in all these decisions. LANCE features a Text-To-Text-Transfer-Transformer (T5) model that has been trained on 6,894,456 Java methods. LANCE takes as input a Java method and injects in it a full log statement, including a human-comprehensible logging message and properly choosing the needed log level and the statement location. Our results show that LANCE is able to (i) properly identify the location in the code where to inject the statement in 65.9 log level in 66.2 statement including a meaningful logging message in 15.2

READ FULL TEXT

page 2

page 6

page 8

research
09/08/2021

Leveraging Code Clones and Natural Language Processing for Log Statement Prediction

Software developers embed logging statements inside the source code as a...
research
12/02/2021

Borrowing from Similar Code: A Deep Learning NLP-Based Approach for Log Statement Automation

Software developers embed logging statements inside the source code as a...
research
12/06/2021

A Tool for Rejuvenating Feature Logging Levels via Git Histories and Degree of Interest

Logging is a significant programming practice. Due to the highly transac...
research
12/11/2019

Using GGNN to recommend log statement level

In software engineering, log statement is an important part because prog...
research
04/06/2022

Data-Driven Approach for Log Instruction Quality Assessment

In the current IT world, developers write code while system operators ru...
research
03/02/2021

An Exploratory Study of Log Placement Recommendation in an Enterprise System

Logging is a development practice that plays an important role in the op...

Please sign up or login with your details

Forgot password? Click here to reset