Logging system and method for computer software
First Claim
1. A computer-implemented method to generate a logging dictionary for a compilation of a source code that has a logging statement and associated source code static data, comprising:
- selecting part of said source code that includes said logging statement;
determining source code static data associated with said logging statement, wherein said associated source code static data includes static variable names, fixed text and fixed formatting information;
generating a combined data element from said associated source code static data, wherein said combined data element includes said static variable names, said fixed text and said fixed format information;
wherein if said combined data element does not occur in said logging dictionary correlated to said logging statement;
assigning a log index value to said combined data element; and
adding said log index value, correlated to the logging statement, to said logging dictionary.
10 Assignments
0 Petitions
Accused Products
Abstract
The present invention provides a computer-implemented method to generate a logging dictionary for a compilation of a source code that has a logging statement and associated source code static data, comprising: selecting part of the source code that includes the logging statement; determining source code static data associated with the logging statement; generating a combined data element from the associated source code static data; correlating the combined data element with the logging statement; wherein if the combined data element does not occur in the logging dictionary correlated to said logging statement; assigning a log index value to the combined data element; and adding the log index value, correlated to the logging statement, to the log dictionary.
-
Citations
19 Claims
-
1. A computer-implemented method to generate a logging dictionary for a compilation of a source code that has a logging statement and associated source code static data, comprising:
-
selecting part of said source code that includes said logging statement; determining source code static data associated with said logging statement, wherein said associated source code static data includes static variable names, fixed text and fixed formatting information; generating a combined data element from said associated source code static data, wherein said combined data element includes said static variable names, said fixed text and said fixed format information; wherein if said combined data element does not occur in said logging dictionary correlated to said logging statement; assigning a log index value to said combined data element; and
adding said log index value, correlated to the logging statement, to said logging dictionary. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A computer-implemented method for generating a key index value that correlates to a logging statement and associated source code static data, comprising:
-
selecting part of a source code that includes said logging statement; determining associated source code static data associated with said logging statement, wherein said associated source code static data includes fixed text, fixed format information and static variable names; generating a combined data element from said associated source code static data, wherein said combined data element includes said fixed text, said fixed format information and said static variable names; determining a log index value associated with said correlated combined data element and said logging statement; enabling a write, to a log, of said log index value in said source code; and
generating a modified source code associated with said log index value and a variable name to replace said source code. - View Dependent Claims (7, 8, 9, 10, 11, 12, 13)
-
-
14. A preprocessor system for modifying source code, comprising:
-
a) a logging statement identifier configured to; distinguish a logging statement from a source code; and parse source code, associated with said source code, further into; i) associated source static data that includes static variable names, fixed text and fixed format information, and ii) associated static variable name data; b) a logging dictionary generator, configured to; i) combine said associated source static data and said associated static variable name data to form a combined data element that includes said static variable names, said fixed text and said fixed format information; ii) if said combined data element does not occur in a coupled logging dictionary correlated to said logging statement, generate a log index value that acts as a key for said combined data element; and iii) store said log index value and said combined data element into said logging dictionary, and c) a computer processor. - View Dependent Claims (15, 16, 17, 18, 19)
-
Specification