Software Engineering
New Framework Identifies Nine Common "Log Smells" in Software Engineering
Researchers have created a structured taxonomy of logging quality issues to help developers recognize and address problems in their code's logging practices.
Software logging plays a critical role in modern development—enabling teams to debug applications, test systems, and monitor performance. Yet logging remains prone to subtle mistakes that can undermine these essential functions. Researchers have now taken a systematic approach to cataloging these problems, much like the software engineering field has done for other quality issues.
What are Log Smells?#
In software engineering, "smells" refer to surface-level indicators that often signal deeper problems in code quality. While this concept has been applied to many areas of development, logging has received relatively little structured attention. The new research aims to fill this gap by identifying and organizing the range of issues that occur in logging practice—spanning everything from how logging code is written to the quality and usefulness of the actual log files produced.
The Research Approach#
The study examined 61 peer-reviewed articles to extract patterns of logging problems reported in the literature. Using open coding techniques, researchers distilled these findings into discrete issues, then applied card sorting—a method for organizing concepts—to group related problems into broader categories. The resulting framework identifies nine distinct log smells, each with multiple dimensions and characteristics.
Mapping Problems to Solutions#
Beyond taxonomy alone, the researchers cross-referenced identified logging issues with existing software tools designed to detect or repair them. This mapping reveals a significant gap: many log smells have no corresponding tools available to help practitioners address them. These blind spots highlight areas where the research community and tool developers should focus future efforts.
Validation and Implications#
The taxonomy was validated using datasets of real logging issues extracted from open-source projects, giving it grounding in actual development scenarios. The findings demonstrate that logging quality problems span both the logging implementation itself and the resulting output files. Understanding these patterns—their causes and consequences—offers practitioners a clearer pathway to reducing defects and strengthening their logging infrastructure overall.