From description to prescription: Unraveling log severity adjustments in open-source software
Logs are vital to understanding a software system’s behavior, often being the only evidence available to investigate failures. Selecting a Log Severity Level (LSL) can be challenging for the following reasons: (i) the absence of knowledge about how logs are used in production, (ii) the lack of understanding of how critical an event is, and (iii) the lack of practical guidelines. This leads to frequent LSL adjustments during software development and evolution. Our goal is to investigate the LSL adjustments between system releases and explore methods to improve LSL classification. We analyzed the log statements from different releases of open-source systems, focusing on their LSL adjustments and examining the commit comments to understand the reasons for the adjustments. Our results show that most adjustments occur at the intersection of development and production environment logs. Furthermore, the main guiding factors for the adjustments are the experience and logging theory. Our contributions are (i) a description of trends and patterns in LSL adjustments and (ii) a set of 24 heuristics to guide the choice, review, and adjustments of LSL. We advise developers to adhere to the LSL purposes, routinely review LSL settings, and remain adaptable to their mutability. • The severity level of log statements can change as the software evolves. • Severity level adjustments occurring between system releases tend to be more experience-oriented rather than based on logging theories. • Avoiding the overproduction of log data is one of the main reasons for adjusting severity levels in the systems investigated. • There is a tendency towards one-degree adjustments with an emphasis on adjustments between the Debug and Info levels. • From our research, we have derived a set of 24 heuristics designed to guide the choice, review, and adjustment of log severity levels.
Authors
- Fábio Petrillo (ORCID: https://orcid.org/0000-0002-8355-1494)
- Sylvain Hallé (ORCID: https://orcid.org/0000-0002-4406-6154)
- E. Mendes (ORCID: https://orcid.org/0000-0001-8115-9512)
- Marcelo Vasconcellos
Institutions
- Université du Québec à Chicoutimi (CA)
- École de Technologie Supérieure (CA)
Publication Details
- Journal
- Journal of Systems and Software
- Published
- 2025-09-25
- DOI
- https://doi.org/10.1016/j.jss.2025.112643
- Primary Topic
- Software System Performance and Reliability
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Canada Research Chairs
- Natural Sciences and Engineering Research Council of Canada