International Business Machines Corporation
Automated defect type based logging integration within source code

Last updated:

Abstract:

Using a natural language processing model, a historical defect report comprising a defect description in narrative text form is parsed. Within a code repository, source code associated with the historical defect report is identified. From the historical defect report and the source code, a logging rule comprising a defect type, logging placement information corresponding to the defect type, and logging format information corresponding to the defect type is generated. By parsing a new defect report using the natural language processing model, the new defect report reporting a defect in new source code, it is determined that the logging rule applies to the new defect report. Logging source code generating logging output when executed is placed within the new source code according to the logging rule. Execution of the new source code including the logging source code is caused, generating the logging output.

Status:
Grant
Type:

Utility

Filling date:

30 Dec 2020

Issue date:

31 May 2022