一种日志记录方法、计算机设备及存储介质

Aug 24, 2021·
Guoping Rong (荣国平)
,
Guocheng Huang (黄国成)
Shenghui (Samuel) Gu
Shenghui (Samuel) Gu
· 0 min read
Abstract
本发明实施例公开了一种日志记录方法、计算机设备及存储介质,其中,所述方法包括:获取目标代码块;从所述目标代码块中提取目标代码块特征;将所述目标代码块特征输入至预先训练好的日志决策模型中,根据所述日志决策模型的输出结果判断是否需要在所述目标代码块中插入日志记录语句;若是,则在所述目标代码块中插入日志记录语句。本发明实施例的技术方案能够可以合理、有效地进行日志记录,不仅能够减少琐碎无效的日志对系统资源的消耗,而且当系统异常时有助于软件开发人员通过合理有效的日志快速找到真正的问题。
Type
Publication
中华人民共和国国家知识产权局
publications
Shenghui (Samuel) Gu
Authors
Postdoctoral Researcher
Postdoctoral Researcher at the University of Ottawa specializing in Trustworthy AI and Software Engineering, holding a Ph.D. from Nanjing University. Research lies at the intersection of AI Safety and System Reliability, with deep expertise spanning LLM-driven testing, search-based software engineering for autonomous systems, and AIOps for distributed architectures. Dedicated to developing rigorous, interpretable, and scalable methodologies that leverage generative AI to solve complex validation challenges in safety-critical and large-scale industrial systems.