...
首页> 外文期刊>Empirical Software Engineering >Which log level should developers choose for a new logging statement?
【24h】

Which log level should developers choose for a new logging statement?

机译:开发人员应为新的日志记录语句选择哪个日志级别?

获取原文
获取原文并翻译 | 示例

摘要

Logging statements are used to record valuable runtime information about applications. Each logging statement is assigned a log level such that users can disable some verbose log messages while allowing the printing of other important ones. However, prior research finds that developers often have difficulties when determining the appropriate level for their logging statements. In this paper, we propose an approach to help developers determine the appropriate log level when they add a new logging statement. We analyze the development history of four open source projects (Hadoop, Directory Server, Hama, and Qpid), and leverage ordinal regression models to automatically suggest the most appropriate level for each newly-added logging statement. First, we find that our ordinal regression model can accurately suggest the levels of logging statements with an AUC (area under the curve; the higher the better) of 0.75 to 0.81 and a Brier score (the lower the better) of 0.44 to 0.66, which is better than randomly guessing the appropriate log level (with an AUC of 0.50 and a Brier score of 0.80 to 0.83) or naively guessing the log level based on the proportional distribution of each log level (with an AUC of 0.50 and a Brier score of 0.65 to 0.76). Second, we find 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.
机译:日志记录语句用于记录有关应用程序的有价值的运行时信息。每个日志记录语句都分配了一个日志级别,以便用户可以禁用一些详细的日志消息,同时允许打印其他重要的日志消息。但是,先前的研究发现,开发人员在确定其日志语句的适当级别时通常会遇到困难。在本文中,我们提出一种方法来帮助开发人员在添加新的日志记录语句时确定适当的日志级别。我们分析了四个开源项目(Hadoop,Directory Server,Hama和Qpid)的开发历史,并利用序数回归模型为每个新添加的日志记录语句自动建议最合适的级别。首先,我们发现我们的序数回归模型可以准确地建议测井语句的水平,其中AUC(曲线下的面积;越高越好)为0.75至0.81,而Brier得分(越低越好)为0.44至0.66,这比随机猜测适当的对数级别(AUC为0.50,Briaer分数为0.80至0.83)或天真地根据每个对数级别的比例分布猜测对数级别(AUC为0.50和Brier分数更好)更好。 0.65至0.76)。其次,我们发现新添加的日志记录语句的包含块的特性,包含的源代码文件中的现有日志记录语句以及新添加的日志记录语句的内容在确定适当的日志级别时起着重要的作用。该日志记录语句。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号