AL-Bench: A Benchmark for Automatic Logging
Not on the map. Why?
Abstract (arXiv)
Logging, the practice of inserting log statements into source code, is critical for improving software reliability. Recently, language model-based techniques have been developed to automate log statement generation based on input code. While these tools show promising results in prior studies, the fairness of their results comparisons is not guaranteed due to the use of ad hoc datasets. In addition, existing evaluation approaches exclusively dependent on code similarity metrics fail to capture the impact of code diff on runtime logging behavior, as minor code modifications can induce program uncompilable and substantial discrepancies in log output semantics. To enhance the consistency and reproducibility of logging evaluation, we introduce AL-Bench, a comprehensive benchmark designed specifically for automatic logging tools. AL-Bench includes a large-scale, high-quality, diverse dataset collected from 10 widely recognized projects with varying logging requirements. Moreover, it introduces a novel dynamic evaluation methodology to provide a run-time perspective of logging quality in addition to the traditional static evaluation at source code level. Specifically, AL-Bench not only evaluates the similarity between the oracle and predicted log statements in source code, but also evaluates the difference between the log files printed by both log statements during runtime. AL-Bench reveals significant limitations in existing static evaluation, as all logging tools show average accuracy drops of 37.49%, 23.43%, and 15.80% in predicting log position, level, and message compared to their reported results. Furthermore, with dynamic evaluation, AL-Bench reveals that 20.1%-83.6% of these generated log statements are unable to compile. Moreover, the best-performing tool achieves only 21.32% cosine similarity between the log files of the oracle and generated log statements.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). First posted on arXiv 5 Feb 2025.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 3; 2026: 1.
4 papers.
- 2026A Survey on Evaluating Quality and Trustworthiness in LLM-Generated Datacited by 6
- 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Qualitycited by 4
- 2025Automated File-Level Logging Generation for Machine Learning Applications using LLMs: A Case Study using GPT-4o Minicited by 1
- 2025AutoLogger: A Multi-Agent Framework for the End-to-End Automated Loggingcited by 1
- 2026A Survey on Evaluating Quality and Trustworthiness in LLM-Generated Data25 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
- 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Quality7 Mar 2025