一句话:通过混合方法实证揭示开发者画像与经验如何影响日志意图、关注点及其在代码中的落实。
日志记录运行程序的行为数据,通常由执行日志语句生成。开发者开展日志实践时一般带有明确的意图与相关关注点(I&Cs),但日志放置——即日志语句上下文与内容的确定——常受个人画像和经验影响,导致I&Cs未必能在源码中恰当落实。已有工业研究多基于单家公司,普适性有限,且缺乏对开发者画像、经验与其日志实践之间关系的全面深入理解。为填补这一空白,本文采用混合方法,结合问卷调查、半结构化访谈和代码分析,对来自多家公司和多个工业领域的从业者开展实证研究。结果表明,开发者共享常见日志I&Cs且主要在编码阶段开展实践,但其画像与经验会深刻影响I&Cs及其落实方式,为促进重要I&Cs的接受和良好日志实践的采用提供了依据。
Logs record the behavioral data of running programs and are typically generated by executing log statements. Software developers generally carry out logging practices with clear intentions and associated concerns (I&Cs). However, I&Cs may not be properly fulfilled in source code as log placement - specifically determination of a log statement's context and content - is often susceptible to an individual's profile and experience. Some industrial studies have been conducted to discern developers' main logging I&Cs and the way I&Cs are fulfilled. However, the findings are only based on the developers from a single company in each individual study and hence have limited generalizability. More importantly, there lacks a comprehensive and deep understanding of the relationships between developers' profiles and experiences and their logging practices from a wider perspective. To fill this significant gap, we conducted an empirical study using mixed methods comprising questionnaire surveys, semi-structured interviews, and code analyses with practitioners from a wide range of companies across a variety of industrial domains. Results reveal that while developers share common logging I&Cs and conduct logging practices mainly in the coding stage, their profiles and experiences profoundly influence their logging I&Cs and the way the I&Cs are fulfilled. These findings pave the way to facilitate the acceptance of important logging I&Cs and the adoption of good logging practices by developers
@inproceedings{RongGSZK23,
title = {How Do Developers' Profiles and Experiences Influence their Logging Practices? An Empirical Study of Industrial Practitioners},
author = {Guoping Rong and Shenghui Gu and Haifeng Shen and He Zhang and Hongyu Kuang},
booktitle = {ICSE},
year = {2023},
doi = {10.1109/icse48619.2023.00080}
}