Log Statements Generation via Deep Learning: Widening the Support
Provided to Developers
- URL: http://arxiv.org/abs/2311.04587v1
- Date: Wed, 8 Nov 2023 10:31:18 GMT
- Title: Log Statements Generation via Deep Learning: Widening the Support
Provided to Developers
- Authors: Antonio Mastropaolo, Valentina Ferrari, Luca Pascarella, Gabriele
Bavota
- Abstract summary: LANCE is an approach rooted in deep learning (DL) that has demonstrated the ability to correctly inject a log statement into Java methods.
We present LEONID, a DL-based technique that can distinguish between methods that do and do not require the inclusion of log statements.
- Score: 16.079459379684554
- License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
- Abstract: Logging assists in monitoring events that transpire during the execution of
software. Previous research has highlighted the challenges confronted by
developers when it comes to logging, including dilemmas such as where to log,
what data to record, and which log level to employ (e.g., info, fatal). In this
context, we introduced LANCE, an approach rooted in deep learning (DL) that has
demonstrated the ability to correctly inject a log statement into Java methods
in ~15% of cases. Nevertheless, LANCE grapples with two primary constraints:
(i) it presumes that a method necessitates the inclusion of logging statements
and; (ii) it allows the injection of only a single (new) log statement, even in
situations where the injection of multiple log statements might be essential.
To address these limitations, we present LEONID, a DL-based technique that can
distinguish between methods that do and do not require the inclusion of log
statements. Furthermore, LEONID supports the injection of multiple log
statements within a given method when necessary, and it also enhances LANCE's
proficiency in generating meaningful log messages through the combination of DL
and Information Retrieval (IR).
Related papers
- LogLLM: Log-based Anomaly Detection Using Large Language Models [8.03646578793411]
We propose LogLLM, a log-based anomaly detection framework that leverages large language models (LLMs)
LogLLM employs BERT for extracting semantic vectors from log messages, while utilizing Llama, a transformer decoder-based model, for classifying log sequences.
Our framework is trained through a novel three-stage procedure designed to enhance performance and adaptability.
arXiv Detail & Related papers (2024-11-13T12:18:00Z) - Studying and Benchmarking Large Language Models For Log Level Suggestion [49.176736212364496]
Large Language Models (LLMs) have become a focal point of research across various domains.
This paper investigates the impact of characteristics and learning paradigms on the performance of 12 open-source LLMs in log level suggestion.
arXiv Detail & Related papers (2024-10-11T03:52:17Z) - Go Static: Contextualized Logging Statement Generation [38.15795803230719]
SCLogger is a contextualized logging statement generation approach with inter-method static contexts.
SCLogger surpasses the state-of-the-art approach by 8.7% in logging position accuracy, 32.1% in level accuracy, 19.6% in variable precision, and 138.4% in text BLEU-4 score.
arXiv Detail & Related papers (2024-02-20T12:22:59Z) - LogFormer: A Pre-train and Tuning Pipeline for Log Anomaly Detection [73.69399219776315]
We propose a unified Transformer-based framework for Log anomaly detection (LogFormer) to improve the generalization ability across different domains.
Specifically, our model is first pre-trained on the source domain to obtain shared semantic knowledge of log data.
Then, we transfer such knowledge to the target domain via shared parameters.
arXiv Detail & Related papers (2024-01-09T12:55:21Z) - A Large-Scale Evaluation for Log Parsing Techniques: How Far Are We? [42.56249610409624]
We provide a new collection of annotated log datasets, denoted Loghub-2.0, which can better reflect the characteristics of log data in real-world software systems.
We conduct a thorough re-evaluation of 15 state-of-the-art logs in a more rigorous and practical setting. Particularly, we introduce a new evaluation metric to mitigate the sensitivity of existing metrics to imbalanced data distributions.
arXiv Detail & Related papers (2023-08-21T16:24:15Z) - Log Parsing Evaluation in the Era of Modern Software Systems [47.370291246632114]
We focus on one integral part of automated log analysis, log parsing, which is the prerequisite to deriving any insights from logs.
Our investigation reveals problematic aspects within the log parsing field, particularly its inefficiency in handling heterogeneous real-world logs.
We propose a tool, Logchimera, that enables estimating log parsing performance in industry contexts.
arXiv Detail & Related papers (2023-08-17T14:19:22Z) - Data-Driven Approach for Log Instruction Quality Assessment [59.04636530383049]
There are no widely adopted guidelines on how to write log instructions with good quality properties.
We identify two quality properties: 1) correct log level assignment assessing the correctness of the log level, and 2) sufficient linguistic structure assessing the minimal richness of the static text necessary for verbose event description.
Our approach correctly assesses log level assignments with an accuracy of 0.88, and the sufficient linguistic structure with an F1 score of 0.99, outperforming the baselines.
arXiv Detail & Related papers (2022-04-06T07:02:23Z) - Borrowing from Similar Code: A Deep Learning NLP-Based Approach for Log
Statement Automation [0.0]
We introduce an updated and improved log-aware code-clone detection method to predict the location of logging statements.
We incorporate natural language processing (NLP) and deep learning methods to automate the log statements' description prediction.
Our analysis shows that our hybrid NLP and code-clone detection approach (NLP CC'd) outperforms conventional clone detectors in finding log statement locations.
arXiv Detail & Related papers (2021-12-02T14:03:49Z) - Leveraging Code Clones and Natural Language Processing for Log Statement
Prediction [0.0]
This research aims to predict the log statements by utilizing source code clones and natural language processing (NLP)
Our work demonstrates the effectiveness of log-aware clone detection for automated log location and description prediction.
arXiv Detail & Related papers (2021-09-08T18:17:45Z) - Self-Supervised Log Parsing [59.04636530383049]
Large-scale software systems generate massive volumes of semi-structured log records.
Existing approaches rely on log-specifics or manual rule extraction.
We propose NuLog that utilizes a self-supervised learning model and formulates the parsing task as masked language modeling.
arXiv Detail & Related papers (2020-03-17T19:25:25Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.