跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 软件工程

arXiv:2201.04837 (cs)
[提交于 2022年1月13日 (v1),最后修订于 2022年1月14日 (此版本, v2)]

标题:Using Deep Learning to Generate Complete Log Statements

作者:Antonio Mastropaolo, Luca Pascarella, Gabriele Bavota
查看论文《Using Deep Learning to Generate Complete Log Statements》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要: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.
主题: 软件工程 (cs.SE)
引用方式: arXiv:2201.04837 [cs.SE]
  (或者 arXiv:2201.04837v2 [cs.SE] 对于此版本)
  https://doi.org/10.48550/arXiv.2201.04837

提交历史

来自:Antonio Mastropaolo
[v1] 2022年1月13日 星期四 08:53:34 UTC
[v2] 2022年1月14日 星期五 10:12:39 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.SE
< 上一篇   |   下一篇 >
最新 | 近期 | 2022-01
切换浏览方式为:
cs

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站