Where do developers log? an empirical study on logging practices in industry
The DOI matches its Crossref record; 19 of the 19 references it cites were found in a registry or an index.
Abstract
System logs are widely used in various tasks of software system management. It is crucial to avoid logging too little or too much. To achieve so, developers need to make informed decisions on where to log and what to log in their logging practices during development. However, there exists no work on studying such logging practices in industry or helping developers make informed decisions. To fill this significant gap, in this paper, we systematically study the logging practices of developers in industry, with focus on where developers log. We obtain six valuable findings by conducting source code analysis on two large industrial systems (2.5M and 10.4M LOC, respectively) at Microsoft. We further validate these findings via a questionnaire survey with 54 experienced developers in Microsoft. In addition, our study demonstrates the high accuracy of up to 90% F-Score in predicting where to log.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
(1992) · Cited by 23,431
Foundations of statistical natural language processing
Manning, C. D., & Schütze, H. (1999) · Cited by 9,816
(2017) · Routledge eBooks · doi:10.1201/9780203742310 · Cited by 568
Execution Anomaly Detection in Distributed Systems through Unstructured Log Analysis
Fu, Q., Lou, J.-G., Wang, Y., & Li, J. (2009) · 2009 Ninth IEEE International Conference on Data Mining · doi:10.1109/icdm.2009.60 · Cited by 542 · cited 1×
“The importance of logging can be widely identified by the various usages of logs in software system management tasks, including anomaly detection [26, 27], error debugging [8], performance diagnosis [11, 24], workload modeling [17], system behavior understanding [28], etc. Additionally, its…”
BackgroundSelf-citationMining invariants from console logs for system problem detection
Lou, J., Fu, Q., Yang, S., Xu, Y., & Li, J. (2010) · Cited by 302
Self-citationAdvances and challenges in log analysis
Oliner, A., Ganapathi, A., & Xu, W. (2012) · Communications of the ACM · doi:10.1145/2076450.2076466 · Cited by 290 · cited 1×
“A large body of research work focuses on postmortem analysis of logs [12], which leverages techniques such as data mining, machine learning, and static analysis to analyze system logs.”
BackgroundStructured comparative analysis of systems logs to diagnose performance problems
Nagaraj, K., Killian, C. E., & Neville, J. (2012) · Purdue e-Pubs (Purdue University System) · Cited by 289
Debugging in the (very) large: ten years of implementation and experience
Glerum, K., Kinshumann, K., Greenberg, S., Aul, G., Orgovan, V., Nichols, G., Grant, D., Loihle, G., & Hunt, G. (2009) · Proceedings of the ACM SIGOPS 22nd symposium on Operating systems principles · doi:10.1145/1629575.1629586 · Cited by 223 · cited 1×
“…can be widely identified by the various usages of logs in software system management tasks, including anomaly detection [26, 27], error debugging [8], performance diagnosis [11, 24], workload modeling [17], system behavior understanding [28], etc. Additionally, its importance is also reflected…”
BackgroundSherLog: error diagnosis by connecting clues from run-time logs
Yuan, D., Mai, H., Xiong, W., Tan, L., Zhou, Y., & Pasupathy, S. (2010) · ACM SIGARCH Computer Architecture News · doi:10.1145/1735970.1736038 · Cited by 212
Modeling and synthesizing task placement constraints in Google compute clusters
Sharma, B., Chudnovsky, V., Hellerstein, J. L., Rifaat, R., & Das, C. R. (2011) · Proceedings of the 2nd ACM Symposium on Cloud Computing · doi:10.1145/2038916.2038919 · Cited by 184 · cited 2×
“A wealth of useful information has been retrieved from logs, including event correlations [11, 25], resource usage [17], component dependency [13], and causal paths [22], to facilitate their diverse usage.”
BackgroundResultMi, H., Wang, H., Zhou, Y., Lyu, M. R.-T., & Cai, H. (2013) · IEEE Transactions on Parallel and Distributed Systems · doi:10.1109/tpds.2013.21 · Cited by 176
SherLog: error diagnosis by connecting clues from run-time logs
Yuan, D., Mai, H., Xiong, W., Tan, L., Zhou, Y., & Pasupathy, S. (2010) · Proceedings of the fifteenth International Conference on Architectural support for programming languages and operating systems · doi:10.1145/1736020.1736038 · Cited by 176 · cited 1×
“Where to log has a great impact on log quality because logging locations reveal execution code paths, which have been shown helpful in postmortem analysis [23].”
BackgroundDiagnosing performance changes by comparing request flows
Sambasivan, R. R., Zheng, A. X., Rosa, M. D., Krevat, E., Whitman, S., Stroucken, M., Wang, W. Y., Xu, L., & Ganger, G. R. (2011) · doi:10.5555/1972457.1972463 · Cited by 165
Characterizing Logging Practices in Open-Source Software
Yuan, D., Park, S., & Zhou, Y. (2012) · Cited by 148
Be conservative: enhancing failure diagnosis with proactive logging
Yuan, D., Park, S., Huang, P., Liu, Y., Lee, M. M., Tang, X., Zhou, Y., & Savage, S. (2013) · Cited by 143
Improving Software Diagnosability via Log Enhancement
Yuan, D., Zheng, J., Park, S., Zhou, Y., & Savage, S. (2012) · ACM Transactions on Computer Systems · doi:10.1145/2110356.2110360 · Cited by 116 · cited 3×
“For example, their LogEnhancer tool [22] can automatically identify important variable values and insert them into the existing logging statements, in order to enrich the content recorded in logging statements.”
BackgroundLogMaster: Mining Event Correlations in Logs of Large-Scale Cluster Systems
Fu, X., Ren, R., Zhan, J., Zhou, W. J., Jia, Z. Y., & Lü, G. (2012) · IEEE Symposium on Reliable Distributed Systems (SRDS) · doi:10.1109/srds.2012.40 · Cited by 90
Contextual analysis of program logs for understanding system behaviors
Fu, Q., Lou, J.-G., Lin, Q., Ding, R., Zhang, D., & Xie, T. (2013) · 2013 10th Working Conference on Mining Software Repositories (MSR) · doi:10.1109/msr.2013.6624054 · Cited by 47 · cited 1×
“…including anomaly detection [26, 27], error debugging [8], performance diagnosis [11, 24], workload modeling [17], system behavior understanding [28], etc. Additionally, its importance is also reflected by our survey results with 54 experienced developers in Microsoft (more details on the…”
ResultSelf-citationOnline detection of multi-component interactions in production systems
Oliner, A. J., & Aiken, A. (2011) · International Conference on Dependable Systems & Networks/Proceedings · doi:10.1109/dsn.2011.5958206 · Cited by 34 · cited 1×
“A wealth of useful information has been retrieved from logs, including event correlations [11, 25], resource usage [17], component dependency [13], and causal paths [22], to facilitate their diverse usage.”
Background
Cited by
Robust log-based anomaly detection on unstable log data
Zhang, X., Xu, Y., Lin, Q., Qiao, B., Zhang, H., Dang, Y., Xie, C., Yang, X., Cheng, Q., Li, Z., et al. (2019) · Proceedings of the 2019 27th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering · doi:10.1145/3338906.3338931 · Cited by 761
“Recently, much research has been devoted to the logging practice and log data quality [13, 16, 17, 45].”
BackgroundMethodSelf-citationExperience Report: System Log Analysis for Anomaly Detection
He, S., Zhu, J., He, P., & Lyu, M. R. (2016) · 2016 IEEE 27th International Symposium on Software Reliability Engineering (ISSRE) · doi:10.1109/issre.2016.21 · Cited by 593
Self-citationTools and benchmarks for automated log parsing
Zhu, J., He, S., Liu, J., He, P., Xie, Q., Zheng, Z., & Lyu, M. R. (2019) · 2019 IEEE/ACM 41st International Conference on Software Engineering: Software Engineering in Practice (ICSE-SEIP) · doi:10.1109/icse-seip.2019.00021 · Cited by 574
“Yuan et al. [46] and Fu et al. [47] report the logging practices in open-source and industrial systems, respectively.”
BackgroundSelf-citationLog clustering based problem identification for online service systems
Lin, Q., Zhang, H., Lou, J.-G., Zhang, Y., & Chen, X. (2016) · Proceedings of the 38th International Conference on Software Engineering Companion · doi:10.1145/2889160.2889232 · Cited by 427
Self-citationA Survey on Automated Log Analysis for Reliability Engineering
He, S., He, P., Chen, Z., Yang, T., Su, Y., & Lyu, M. R. (2022) · ACM Computing Surveys · doi:10.1145/3460345 · Cited by 334
Metadata
- Authors
- Fu, Q., Zhu, J., Hu, W., Lou, J.-G., Ding, R., Lin, Q., Zhang, D., & Xie, T.
- Venue
- Companion Proceedings of the 36th International Conference on Software Engineering
- Publisher
- ACM
- Published
- 2014-05-31
- Pages
- 24-33
- ISSN
- 0270-5257 (ISSN-L)
- OpenAlex
- W2170890990
- Cited by
- 230
- References
- 19
- FWCI
- 13.39
- Type
- conference paper
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.