2012 · 193 citations · 20 references
ComputingComputer ScienceCompilersProgramming LanguagesSoftware EngineeringLog AnalysisSoftware MaintenanceVersion ControlChange LoggingCompiler DesignError LoggingLoggingOpen Source Software MaintenanceOpen-source Software DevelopmentRevision History Analysis
Software logging is a conventional programming practice. While its efficacy is often important for users and developers to understand what have happened in the production run, yet software logging is often done in an arbitrary manner. So far, there have been little study for understanding logging practices in real world software. This paper makes the first attempt (to the best of our knowledge) to provide a quantitative characteristic study of the current log messages within four pieces of large open-source software. First, we quantitatively show that software logging is pervasive. By examining developers' own modifications to the logging code in the revision history, we find that they often do not make the log messages right in their first attempts, and thus need to spend a significant amount of efforts to modify the log messages as after-thoughts. Our study further provides several interesting findings on where developers spend most of their efforts in modifying the log messages, which can give insights for programmers, tool developers, and language and compiler designers to improve the current logging practice. To demonstrate the benefit of our study, we built a simple checker based on one of our findings and effectively detected 138 pieces of new problematic logging code from studied software (24 of them are already confirmed and fixed by developers).
20
Detecting large-scale system problems by mining console logs
Wei Xu, Ling Huang, Armando Fox et al. · 2009 · 1.3K citations
Thomas Ball, Sriram K. Rajamani · 2002 · 926 citations
Fault injection techniques and tools
Mei-Chen Hsueh, Timothy Tsai, Ravishankar K. Iyer · Computer · 1997 · 869 citations · Full text
Dawson Engler, David Yu Chen, Seth Hallem et al. · 2001 · 747 citations
Predicting source code changes by mining change history
Annie T. T. Ying, Gail C. Murphy, Raymond T. Ng et al. · IEEE Transactions on Software Engineering · 2004 · 571 citations