arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.09284cs.SE
收藏

迈向软件日志恶臭的分类

Towards a Taxonomy of Software Log Smells

University of Luxembourg(卢森堡大学);University of Sheffield(谢菲尔德大学)

Nyyti Saarimäki, Zahra G. Yazdi, Donghwan Shin, Domenico Bianculli

AI总结:

本研究提出日志恶臭的分类,旨在帮助开发人员编写更高质量的日志代码,并通过现有工具识别研究空白。

摘要:

背景:日志是现代软件项目的重要组成部分;日志用于调试和测试等多种任务。由于日志的复杂性,它仍然是一个困难的任务,具有多个陷阱,可能导致严重后果。其他软件工程领域通过识别更严重问题的早期迹象,即'恶臭',来减轻这些威胁。然而,这一概念尚未在日志领域得到明确定义。目标:本研究的目标是创建一个日志恶臭的分类,以帮助开发人员编写更好的日志代码。为了进一步帮助开发人员并识别需要研究社区更多关注的问题,我们还将识别出的恶臭映射到现有的修复工具上。方法:我们对科学文献进行了调查,以确定日志问题和相关工具。在提取了51篇文章的相关数据后,我们使用开放式编码来定义日志问题,并应用卡片排序来从这些问题中推导出日志恶臭。最后,我们根据其报告的输出对工具进行了分类。结果:我们提出了九种日志恶臭的分类,并描述了每种恶臭的几个方面。我们还回顾了现有工具修复/移除某些恶臭方面的工具,突显了缺乏解决某些日志恶臭的工具,并确定了未来研究机会以弥补这一差距。结论:日志在整个生命周期中都容易受到日志恶臭的影响,这些问题可能影响日志实现和最终的日志文件。了解这些恶臭——以及它们的原因和后果——可以帮助减少它们的发生,从而提高日志的质量。

英文摘要:

Logging is an important part of modern software projects; logs are used in several tasks such as debugging and testing. Due to the complex nature of logging, it remains a difficult task with several pitfalls that could have serious consequences. Several other domains of software engineering have mitigated such threats by identifying the early signs of more serious issues, i.e., ``smells''. However, in the context of software logging, the concept of smells has only been investigated in a limited and narrow scope. The goal of this study is to systematically organize logging issues reported in the literature into a taxonomy of log smells that can help practitioners to better understand logging quality issues. To further help the practitioners and to identify issues that need more attention from the research community, we also map the identified smells to existing tools repairing them. We conducted a survey of the scientific literature to identify logging issues and related tools. After extracting relevant data from 61 articles, we used open coding to define logging issues and applied card sorting to derive log smells from these issues. Finally, we classified the tools based on their reported output. We present a taxonomy of nine log smells, describe several facets for each of them, and report the results of a preliminary validation of the taxonomy using a dataset of logging issues extracted from open-source projects. We also review existing tools repairing/removing some of these facets, highlighting the lack of tools addressing some log smells and identifying future research opportunities to close this gap. Our findings indicate that software logging is susceptible to a wide variety of log smells affecting both the logging code and the resulting log files. Understanding these smells, along with their causes and consequences, can help reduce their occurrence and improve logging quality.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑