Title
Which log level should developers choose for a new logging statement? (journal-first abstract)
Abstract
This is an extended abstract of a paper published in the Empirical Software Engineering journal. The original paper is communicated by Mark Grechanik. The paper empirically studied how developers assign log levels to their logging statements and proposed an automated approach to help developers determine the most appropriate log level when they add a new logging statement. We analyzed the development history of four open source projects (Hadoop, Directory Server, Hama, and Qpid). We found that our automated approach can accurately suggest the levels of logging statements with an AUC of 0.75 to 0.81. We also found that the characteristics of the containing block of a newly-added logging statement, the existing logging statements in the containing source code file, and the content of the newly-added logging statement play important roles in determining the appropriate log level for that logging statement.
Year
DOI
Venue
2018
10.1109/SANER.2018.8330234
2018 IEEE 25th International Conference on Software Analysis, Evolution and Reengineering (SANER)
Keywords
Field
DocType
software logging,log level,ordinal regression model
Source code,Computer science,Empirical process (process control model),Database,Logging,Directory service
Conference
ISBN
Citations 
PageRank 
978-1-5386-4970-1
0
0.34
References 
Authors
0
3
Name
Order
Citations
PageRank
Heng Li132533.39
Weiyi Shang256638.03
Ahmed E. Hassan35959287.68