Using Deep Learning to Generate Complete Log Statements
Not on the map. Why?
Abstract (arXiv)
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% of Java methods requiring it; (ii) selecting the proper log level in 66.2% of cases; and (iii) generate a completely correct log statement including a meaningful logging message in 15.2% of cases.
Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). First posted on arXiv 13 Jan 2022.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 2; 2024: 6; 2025: 4; 2026: 4.
16 papers.
Sort:
By area:
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2024Automated Root Causing of Cloud Incidents using In-Context Learning with GPT-4cited by 28
- 2024Automatically Generating UI Code from Screenshot: A Divide-and-Conquer-Based Approachcited by 24
- 2024X-lifecycle Learning for Cloud Incident Management using LLMscited by 19
- 2024Knowledge-aware Alert Aggregation in Large-scale Cloud Systems: a Hybrid Approachcited by 4
- 2025Simplifying Root Cause Analysis in Kubernetes with StateGraph and LLMcited by 4
- 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Qualitycited by 3
- 2024LUK: Empowering Log Understanding with Expert Knowledge from Large Language Modelscited by 2
- 2026Do AI Coding Agents Log Like Humans? An Empirical Studycited by 2
- 2023Towards Automatically Addressing Self-Admitted Technical Debt: How Far Are We?cited by 1
- 2024The Rise and Fall(?) of Software Engineeringcited by 1
- 2025Automated File-Level Logging Generation for Machine Learning Applications using LLMs: A Case Study using GPT-4o Minicited by 1
4 more
- 2026Towards Secure Logging: Characterizing and Benchmarking Logging Code Security Issues with LLMscited by 1
- 2025AutoLogger: A Multi-Agent Framework for the End-to-End Automated Loggingcited by 0
- 2026On the Impact of Code Comments for Automated Bug-Fixing: An Empirical Studycited by 0
- 2026DOne: Decoupling Structure and Rendering for High-Fidelity Design-to-Code Generationcited by 0
- 2026Towards Secure Logging: Characterizing and Benchmarking Logging Code Security Issues with LLMs22 Apr 2026
- 2026Do AI Coding Agents Log Like Humans? An Empirical Study10 Apr 2026
- 2026DOne: Decoupling Structure and Rendering for High-Fidelity Design-to-Code Generation12 Mar 2026
- 2026On the Impact of Code Comments for Automated Bug-Fixing: An Empirical Study30 Jan 2026
- 2025AutoLogger: A Multi-Agent Framework for the End-to-End Automated Logging23 Nov 2025
- 2025Automated File-Level Logging Generation for Machine Learning Applications using LLMs: A Case Study using GPT-4o Mini6 Aug 2025
- 2025Simplifying Root Cause Analysis in Kubernetes with StateGraph and LLM3 Jun 2025
- 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Quality7 Mar 2025
- 2024LUK: Empowering Log Understanding with Expert Knowledge from Large Language Models3 Sep 2024
- 2024Automatically Generating UI Code from Screenshot: A Divide-and-Conquer-Based Approach24 Jun 2024
- 2024The Rise and Fall(?) of Software Engineering14 Jun 2024
- 2024Knowledge-aware Alert Aggregation in Large-scale Cloud Systems: a Hybrid Approach11 Mar 2024
4 more
- 2024X-lifecycle Learning for Cloud Incident Management using LLMs15 Feb 2024
- 2024Automated Root Causing of Cloud Incidents using In-Context Learning with GPT-424 Jan 2024
- 2023Large Language Models for Software Engineering: A Systematic Literature Review21 Aug 2023
- 2023Towards Automatically Addressing Self-Admitted Technical Debt: How Far Are We?17 Aug 2023
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2024Automated Root Causing of Cloud Incidents using In-Context Learning with GPT-4cited by 28
- 2024Automatically Generating UI Code from Screenshot: A Divide-and-Conquer-Based Approachcited by 24
- 2024X-lifecycle Learning for Cloud Incident Management using LLMscited by 19
- 2024Knowledge-aware Alert Aggregation in Large-scale Cloud Systems: a Hybrid Approachcited by 4
- 2025Simplifying Root Cause Analysis in Kubernetes with StateGraph and LLMcited by 4
- 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Qualitycited by 3
- 2024LUK: Empowering Log Understanding with Expert Knowledge from Large Language Modelscited by 2
- 2023Towards Automatically Addressing Self-Admitted Technical Debt: How Far Are We?cited by 1
- 2024The Rise and Fall(?) of Software Engineeringcited by 1
- 2025Automated File-Level Logging Generation for Machine Learning Applications using LLMs: A Case Study using GPT-4o Minicited by 1
- 2026Towards Secure Logging: Characterizing and Benchmarking Logging Code Security Issues with LLMscited by 1
12 most cited of 13 All 13 (JSON)
- 2026Towards Secure Logging: Characterizing and Benchmarking Logging Code Security Issues with LLMs22 Apr 2026
- 2026On the Impact of Code Comments for Automated Bug-Fixing: An Empirical Study30 Jan 2026
- 2025Automated File-Level Logging Generation for Machine Learning Applications using LLMs: A Case Study using GPT-4o Mini6 Aug 2025
- 2025Simplifying Root Cause Analysis in Kubernetes with StateGraph and LLM3 Jun 2025
- 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Quality7 Mar 2025
- 2024LUK: Empowering Log Understanding with Expert Knowledge from Large Language Models3 Sep 2024
- 2024Automatically Generating UI Code from Screenshot: A Divide-and-Conquer-Based Approach24 Jun 2024
- 2024The Rise and Fall(?) of Software Engineering14 Jun 2024
- 2024Knowledge-aware Alert Aggregation in Large-scale Cloud Systems: a Hybrid Approach11 Mar 2024
- 2024X-lifecycle Learning for Cloud Incident Management using LLMs15 Feb 2024
- 2024Automated Root Causing of Cloud Incidents using In-Context Learning with GPT-424 Jan 2024
- 2023Large Language Models for Software Engineering: A Systematic Literature Review21 Aug 2023
12 newest of 13 All 13 (JSON)