US 12,229,039 B2
On-demand contextual trace log generation
Wei Chen, Shanghai (CN); Wenbing Duan, Shanghai (CN); Xudong Liu, Shanghai (CN); Tianhao Liu, Shanghai (CN); Xiang Fan, Shanghai (CN); and Jia Wang, Shanghai (CN)
Assigned to SAP SE, Walldorf (DE)
Filed by SAP SE, Walldorf (DE)
Filed on Aug. 19, 2022, as Appl. No. 17/891,289.
Prior Publication US 2024/0061762 A1, Feb. 22, 2024
Int. Cl. G06F 11/36 (2006.01)
CPC G06F 11/3636 (2013.01) [G06F 11/3624 (2013.01); G06F 11/3692 (2013.01)] 17 Claims
OG exemplary drawing
 
1. One or more non-transitory computer-readable media storing computer-executable instructions that, when executed by a processor, perform a method for automatic generation of dynamic application trace logs associated with a running application, the method comprising:
presenting, by a log viewer, a plurality of application log entries associated with an application execution log, the application log having been generated in connection with a previous execution of an application;
analyzing the application execution log to identify one or more application execution log context descriptors;
extracting the one or more application execution log context descriptors from the application execution log;
transmitting the one or more application execution log context descriptors to the running application;
for each application execution log context descriptor, requesting, by the running application, one or more registered tracing templates for examining each application execution log context descriptor and returning the one or more tracing templates and an associated context relevance score;
receiving from the running application the one or more tracing templates that match each of the one or more application execution log context descriptors;
receiving, at the log viewer, the one or more tracing templates having the associated context relevance scores;
displaying, by the log viewer, the one or more tracing templates based on the associated context relevance scores;
generating an application debugging script based on the one or more tracing templates;
starting an execution trace in connection with the running application based on the generated application debugging script; and
transmitting a current application execution log based on the execution trace.