作者
Zishuo Ding, Yiming Tang, Xiaoyu Cheng, Heng Li, Weiyi Shang
发表日期
2023/12/22
期刊
ACM Transactions on Software Engineering and Methodology
卷号
33
期号
2
页码范围
1-45
出版商
ACM
简介
Developers insert logging statements in the source code to collect important runtime information about software systems. The textual descriptions in logging statements (i.e., logging texts) are printed during system executions and exposed to multiple stakeholders including developers, operators, users, and regulatory authorities. Writing proper logging texts is an important but often challenging task for developers. Prior studies find that developers spend significant efforts modifying their logging texts. However, despite extensive research on automated logging suggestions, research on suggesting logging texts rarely exists. To fill this knowledge gap, we first propose LoGenText (initially reported in our conference paper), an automated approach that uses neural machine translation (NMT) models to generate logging texts by translating the related source code into short textual descriptions. LoGenText takes the …
引用总数
学术搜索中的文章