paperbot · PL 论文追踪

全部论文 待读 收藏

P2 TeLL: log level suggestions via modeling multi-level code block information

TeLL:通过建模多层级代码块信息进行日志级别建议
ISSTA Proceedings of the 31st ACM SIGSOFT International Symposium on Software Testing and Analysis2022匹配度 2/10 · 论文面向日志级别推荐这一具体开发者工具任务,属于机器学习辅助软件开发,不涉及静态分析、形式化验证、浮点/贝叶斯程序分析,也未与 LLM/Agent 或 Agentic 程序分析交叉;与用户核心研究方向关联很弱。引用 23 inbox
Jiahao Liu, Jun Zeng, Xiang Wang, Kaihang Ji, Zhenkai Liang
crossref: 2026-09-12

AI 速览

一句话:提出 TeLL,对多层级代码块信息建模,综合利用块内与块间特征为日志语句推荐合适的详细级别。

日志语句是软件调试与维护的重要基础,每条日志通常被赋予一个详细级别(如 trace、error)。然而,由于缺乏关于日志级别使用规范的明确说明,开发者选择恰当级别时既困难又容易出错。已有方案主要依据日志语句所在代码块内部的特征(intra-block features)来推荐级别,却忽略了周边代码块所提供的信息(inter-block features),而这些信息同样对刻画日志特征至关重要。本文提出 TeLL,通过对多层级代码块信息进行建模,融合块内与块间特征来完成日志级别建议。摘要未报告具体的实现细节与实验结果。

问题
日志级别的选择缺乏明确规范,开发者容易选错;现有方法只使用日志语句所在代码块的块内特征,未考虑周边代码块的块间信息,导致建议不准确。
方法
提出 TeLL,对多层级代码块信息进行建模,把日志语句所在块的内部特征与周围代码块的上下文特征结合起来,据此推断合适的日志详细级别。
评估
所给摘要未提供评估相关信息,数据集、对比基线与评价指标均未提及,无法从现有内容判断其评估方式。
原文摘要(Abstract)

Developers insert logging statements into source code to monitor system execution, which forms the basis for software debugging and maintenance. For distinguishing diverse runtime information, each software log is assigned with a separate verbosity level (e.g., trace and error). However, choosing an appropriate verbosity level is a challenging and error-prone task due to the lack of specifications for log level usages. Prior solutions aim to suggest log levels based on the code block in which a logging statement resides (i.e., intra-block features). Such suggestions, however, do not consider information from surrounding blocks (i.e., inter-block features), which also plays an important role in revealing logging characteristics.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot7395,
  title = {TeLL: log level suggestions via modeling multi-level code block information},
  author = {Jiahao Liu and Jun Zeng and Xiang Wang and Kaihang Ji and Zhenkai Liang},
  booktitle = {ISSTA},
  year = {2022},
  doi = {10.1145/3533767.3534379}
}