Context tracing for software logging
First Claim
1. A computer program product, the computer program product being tangibly embodied on a non-transitory computer-readable storage medium and comprising instructions that, when executed, are configured to cause at least one computing device to:
- determine a trace configuration defining a first trace message and a second trace message to be written by a called program during execution of the called program;
determine a trace context parameter value identifying a storage location for the first trace message and the second trace message when written by the called program;
include the trace context parameter value within at least one call to the called program requesting the execution of the called program; and
write, during the execution of the called program and in accordance with the trace configuration and the trace context parameter value, the first trace message and the second trace message to the identified storage location.
1 Assignment
0 Petitions
Accused Products
Abstract
Context tracing may be implemented by modifying a call to parameterize, and thereby govern, logging operations of a called software application or program. Resulting messages of the logging operations are stored in a manner that facilitates fast identification and retrieval of the messages. Accordingly, accurate identification of errors or sub-optimal operations of the called software application or program is enabled, thereby enabling correction and/or optimization of operations of the called program.
-
Citations
20 Claims
-
1. A computer program product, the computer program product being tangibly embodied on a non-transitory computer-readable storage medium and comprising instructions that, when executed, are configured to cause at least one computing device to:
-
determine a trace configuration defining a first trace message and a second trace message to be written by a called program during execution of the called program; determine a trace context parameter value identifying a storage location for the first trace message and the second trace message when written by the called program; include the trace context parameter value within at least one call to the called program requesting the execution of the called program; and write, during the execution of the called program and in accordance with the trace configuration and the trace context parameter value, the first trace message and the second trace message to the identified storage location. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A method of executing instructions stored on a non-transitory computer-readable storage medium using at least one processor, the method comprising:
-
defining a plurality of call characteristics as available values for a trace context parameter associated with generation of trace messages logging execution aspects of a plurality of calls when executed by a called program; receiving a trace context parameter value for the trace context parameter that identifies a call characteristic of the plurality of call characteristics to be used; including the trace context parameter value within a first call and a second call of the plurality of calls to the called program; receiving a generated first trace message in response to execution of the first call by the called program, and a second trace message generated in response to execution of the second call; and storing the generated first trace message and second trace message within a trace file defined with respect to the identified call characteristic. - View Dependent Claims (12, 13, 14)
-
-
15. A system comprising:
-
a parameter handler configured to receive a trace context parameter value specifying a trace file to be used in storing a first trace message and a second trace message logging an execution aspect of a called program; a context tracing engine configured to include the trace context parameter value within at least one call to the called program; and a trace files repository configured to store the trace file including the first trace message and the second trace message, after the at least one call is passed to the called program and the first trace message are generated in conjunction with an execution of the at least one call by the called program. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification