Are They All Good? Studying Practitioners' Expectations on the Readability of Log Messages

08/17/2023
by   Zhenhao Li, et al.
0

Developers write logging statements to generate logs that provide run-time information for various tasks. The readability of log messages in the logging statements (i.e., the descriptive text) is rather crucial to the value of the generated logs. Immature log messages may slow down or even obstruct the process of log analysis. Despite the importance of log messages, there is still a lack of standards on what constitutes good readability in log messages and how to write them. In this paper, we conduct a series of interviews with 17 industrial practitioners to investigate their expectations on the readability of log messages. Through the interviews, we derive three aspects related to the readability of log messages, including Structure, Information, and Wording, along with several specific practices to improve each aspect. We validate our findings through a series of online questionnaire surveys and receive positive feedback from the participants. We then manually investigate the readability of log messages in large-scale open source systems and find that a large portion (38.1 observation, we further explore the potential of automatically classifying the readability of log messages using deep learning and machine learning models. We find that both deep learning and machine learning models can effectively classify the readability of log messages with a balanced accuracy above 80.0 on average. Our study provides comprehensive guidelines for composing log messages to further improve practitioners' logging practices.

READ FULL TEXT
research
08/13/2022

The Sense of Logging in the Linux Kernel

Logging plays a crucial role in software engineering because it is key t...
research
02/15/2022

Documentation based Semantic-Aware Log Parsing

With the recent advances of deep learning techniques, there are rapidly ...
research
04/06/2022

Data-Driven Approach for Log Instruction Quality Assessment

In the current IT world, developers write code while system operators ru...
research
04/15/2020

Effective Removal of Operational Log Messages: an Application to Model Inference

Model inference aims to extract accurate models from the execution logs ...
research
10/29/2018

Accelerating System Log Processing by Semi-supervised Learning: A Technical Report

There is an increasing need for more automated system-log analysis tools...
research
07/17/2023

2P-BFT-Log: 2-Phase Single-Author Append-Only Log for Adversarial Environments

Replicated append-only logs sequentially order messages from the same au...
research
09/10/2023

Distributed Kafka Clusters: A Novel Approach to Global Message Ordering

In contemporary distributed systems, logs are produced at an astounding ...

Please sign up or login with your details

Forgot password? Click here to reset