Live
Black Hat USADark ReadingBlack Hat AsiaAI BusinessDeveloper’s Guide to Building ADK Agents with SkillsGoogle Developers BlogCargill Wins 2026 BIG Artificial Intelligence Excellence Award - foodmarket.comGoogle News: AIMeet the Agentic AI Design-to-Source Workspace for PLM: From CAD to Confident Sourcing Decisions - Oracle BlogsGNews AI agenticYouTube blasted by hundreds of experts over ‘AI slop’ videos served up to kidsFast Company TechZenity Emphasizes Security Controls for Expanding Enterprise AI Agent Ecosystems - TipRanksGoogle News: AI SafetyApono Uses Gamified AI Security Exercise to Engage Cloud Security Community - TipRanksGoogle News: AI SafetyUniversity of Colorado delays student rollout of ChatGPT Edu - Boulder Daily CameraGoogle News: ChatGPTSpaceX finally files for IPO, targets $1.75 trillion valuationArs TechnicaMeta’s natural gas binge could power South DakotaTechCrunch AIYour AI Vendor's Worst Enemy Is Its Own Development Pipeline - GovInfoSecurityGoogle News: Machine LearningLegal AI startup Legora hits $100 million in annual recurring revenueBusiness InsiderAnthropic's leaked AI coding tool has been cloned over 8,000 times on GitHub despite mass takedownsThe DecoderBlack Hat USADark ReadingBlack Hat AsiaAI BusinessDeveloper’s Guide to Building ADK Agents with SkillsGoogle Developers BlogCargill Wins 2026 BIG Artificial Intelligence Excellence Award - foodmarket.comGoogle News: AIMeet the Agentic AI Design-to-Source Workspace for PLM: From CAD to Confident Sourcing Decisions - Oracle BlogsGNews AI agenticYouTube blasted by hundreds of experts over ‘AI slop’ videos served up to kidsFast Company TechZenity Emphasizes Security Controls for Expanding Enterprise AI Agent Ecosystems - TipRanksGoogle News: AI SafetyApono Uses Gamified AI Security Exercise to Engage Cloud Security Community - TipRanksGoogle News: AI SafetyUniversity of Colorado delays student rollout of ChatGPT Edu - Boulder Daily CameraGoogle News: ChatGPTSpaceX finally files for IPO, targets $1.75 trillion valuationArs TechnicaMeta’s natural gas binge could power South DakotaTechCrunch AIYour AI Vendor's Worst Enemy Is Its Own Development Pipeline - GovInfoSecurityGoogle News: Machine LearningLegal AI startup Legora hits $100 million in annual recurring revenueBusiness InsiderAnthropic's leaked AI coding tool has been cloned over 8,000 times on GitHub despite mass takedownsThe Decoder

Logging Like Humans for LLMs: Rethinking Logging via Execution and Runtime Feedback

arXiv cs.SEby Xin Wang, Yang Feng, Jiaoxiao Qian, Yang Zhang, Zhenhao Li, Zishuo DingApril 1, 20262 min read0 views
Source Quiz

arXiv:2603.29122v1 Announce Type: new Abstract: Logging statements are essential for software debugging and maintenance. However, existing approaches to automatic logging generation rely on static analysis and produce statements in a single pass without considering runtime behavior. They are also typically evaluated by similarity to developer-written logs, assuming these logs form an adequate gold standard. This assumption is increasingly limiting in the LLM era, where logs are consumed not only by developers but also by LLMs for downstream tasks. As a result, optimizing logs for human similarity does not necessarily reflect their practical utility. To address these limitations, we introduce ReLog, an iterative logging generation framework guided by runtime feedback. ReLog leverages LLMs t

View PDF HTML (experimental)

Abstract:Logging statements are essential for software debugging and maintenance. However, existing approaches to automatic logging generation rely on static analysis and produce statements in a single pass without considering runtime behavior. They are also typically evaluated by similarity to developer-written logs, assuming these logs form an adequate gold standard. This assumption is increasingly limiting in the LLM era, where logs are consumed not only by developers but also by LLMs for downstream tasks. As a result, optimizing logs for human similarity does not necessarily reflect their practical utility. To address these limitations, we introduce ReLog, an iterative logging generation framework guided by runtime feedback. ReLog leverages LLMs to generate, execute, evaluate, and refine logging statements so that runtime logs better support downstream tasks. Instead of comparing against developer-written logs, we evaluate ReLog through downstream debugging tasks, including defect localization and repair. We construct a benchmark based on Defects4J under both direct and indirect debugging settings. Results show that ReLog consistently outperforms all baselines, achieving an F1 score of 0.520 and repairing 97 defects in the direct setting, and the best F1 score of 0.408 in the indirect setting where source code is unavailable. Additional experiments across multiple LLMs demonstrate the generality of the framework, while ablations confirm the importance of iterative refinement and compilation repair. Overall, our work reframes logging as a runtime-guided, task-oriented process and advocates evaluating logs by their downstream utility rather than textual similarity.

Subjects:

Software Engineering (cs.SE)

Cite as: arXiv:2603.29122 [cs.SE]

(or arXiv:2603.29122v1 [cs.SE] for this version)

https://doi.org/10.48550/arXiv.2603.29122

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Xin Wang [view email] [v1] Tue, 31 Mar 2026 01:18:49 UTC (621 KB)

Was this article helpful?

Sign in to highlight and annotate this article

AI
Ask AI about this article
Powered by AI News Hub · full article context loaded
Ready

Conversation starters

Ask anything about this article…

Daily AI Digest

Get the top 5 AI stories delivered to your inbox every morning.

More about

benchmarkannounceavailable

Knowledge Map

Knowledge Map
TopicsEntitiesSource
Logging Lik…benchmarkannounceavailableanalysisarxivarXiv cs.SE

Connected Articles — Knowledge Graph

This article is connected to other articles through shared AI topics and tags.

Knowledge Graph100 articles · 200 connections
Scroll to zoom · drag to pan · click to open

Discussion

Sign in to join the discussion

No comments yet — be the first to share your thoughts!

More in Models