OmniLLP: Enhancing LLM-based Log Level Prediction with Context-Aware Retrieval
Youssef Esseddiq Ouatiti, Mohammed Sayagh, Bram Adams, Ahmed E. Hassan

TL;DR
OmniLLP enhances large language model-based log level prediction by using context-aware clustering of source files, significantly improving accuracy through semantic and ownership signals.
Contribution
This paper introduces OmniLLP, a novel framework that improves LLM-based log level prediction by incorporating semantic and developer ownership clustering for better in-context example selection.
Findings
Semantic and ownership-aware clustering improves AUC by up to 8%.
Combining semantic and ownership signals achieves AUC of 0.88 to 0.96.
Context-aware retrieval significantly outperforms random example selection.
Abstract
Developers insert logging statements in source code to capture relevant runtime information essential for maintenance and debugging activities. Log level choice is an integral, yet tricky part of the logging activity as it controls log verbosity and therefore influences systems' observability and performance. Recent advances in ML-based log level prediction have leveraged large language models (LLMs) to propose log level predictors (LLPs) that demonstrated promising performance improvements (AUC between 0.64 and 0.8). Nevertheless, current LLM-based LLPs rely on randomly selected in-context examples, overlooking the structure and the diverse logging practices within modern software projects. In this paper, we propose OmniLLP, a novel LLP enhancement framework that clusters source files based on (1) semantic similarity reflecting the code's functional purpose, and (2) developer ownership…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware System Performance and Reliability · Software Engineering Research · Advanced Software Engineering Methodologies
