Methods and systems to identify log write instructions of a source code as sources of event messages
US-2018095731-A1 · Apr 5, 2018 · US
US10846198B2 · US · B2
| Field | Value |
|---|---|
| Publication number | US-10846198-B2 |
| Application number | US-201916358442-A |
| Country | US |
| Kind code | B2 |
| Filing date | Mar 19, 2019 |
| Priority date | Mar 19, 2019 |
| Publication date | Nov 24, 2020 |
| Grant date | Nov 24, 2020 |
A practical reading order for non-experts. Skip the full description unless you need deep technical detail.
What the patent document calls the invention.
A short plain-language summary of the technical disclosure.
Who owns or filed the patent and who is credited as inventor.
Filing, priority, publication, and grant dates set the timeline.
The legal scope of protection — read this for what is actually claimed.
Technology tags used to group this patent with similar filings.
Prior art links and similar publications in this corpus.
Official abstract text for this publication.
Automatic navigation of a user from a log statement that is selected by the user from a log to a code expression that was executed to generate the selected log statement. The computing system automatically identifies one or more code expressions as candidates for having generated the log statement, and then maps the log statement to these identified candidate code expressions in the code. In response to input from the user selecting the log expression, the computing system uses the mapping to visually provide a correlation between the log statement and the particular code expression, where the one or more mapped code expressions includes the particular code expression that actually generated the log statement.
Opening claim text (preview).
What is claimed is: 1. A computing system configured to automatically navigate a user from a selected log statement to a corresponding code expression that generated the selected log statement, said computing system comprising: one or more processors; and one or more computer-readable hardware storage devices storing computer-executable instructions that are executable by the one or more processors to cause the computing system to at least: display, within a user interface, a log comprising a log statement, wherein the log statement was generated during execution of a particular log-generating code expression; identify one or more candidate log-generating code expressions as candidates that potentially generated the log statement, said particular log-generating code expression being included among the one or more candidate log-generating code expressions; generate a map that associates the log statement with the one or more candidate log-generating code expressions; and in response to input selecting the statement from within the user interface, use the map to visually provide correlation between the log statement and the particular log-generating code expression. 2. The computing system in accordance with claim 1 , wherein the map also associates one or more portions of the log statement with one or more portions of the particular log-generating code expression, and wherein execution of the computer-executable instructions further causes the computing system to: use the map to visually provide a specific correlation between at least one portion of the log statement and a corresponding portion of the particular log-generating code expression. 3. The computing system in accordance with claim 2 , the corresponding portion of the particular log-generating code expression representing data used to construct the at least one portion of the log statement. 4. The computing system in accordance with claim 1 , wherein the map also associates one or more portions of the log statement with one or more portions of the particular log-generating code expression, and wherein execution of the computer-executable instructions further causes the computing system to: use the map to visually provide a specific correlation between each of a plurality of portions of the log statement and corresponding portions of the particular log-generating code expression. 5. The computing system in accordance with claim 1 , wherein the particular log-generating code expression is included within source code that includes a plurality of log-generating code expressions, and wherein identifying of the one or more candidate log-generating code expressions as candidates includes: determining a lexicography for each of at least some of the plurality of log-generating code expressions of the source code; and determining that a particular lexicography of the particular log-generating code expression matches a lexicography of the log statement. 6. The computing system in accordance with claim 5 , wherein identifying the one or more candidate log-generating code expressions includes prioritizing the one or more candidate log-generating code expressions. 7. A method for automatically navigating a user from a log statement that is selected by the user to a code expression that was executed to generate the selected log statement, the method comprising: displaying, within a user interface, a log comprising a log statement, wherein the log statement was generated during execution of a particular log-generating code expression; identifying one or more candidate log-generating code expressions as candidates that potentially generated the log statement, said particular log-generating code expression being included among the one or more candidate log-generating code expressions; mapping the log statement to the one or more candidate log-generating code expressions; and in response to input selecting the log statement from within the user interface, use the mapping to visually provide a correlation between the log statement and the particular log-generating code expression. 8. The method in accordance with claim 7 , the mapping occurring after execution of source code comprising the particular log-generating code expression. 9. The method in accordance with claim 7 , the mapping occurring during executing of source code comprising the particular log-generating code expression. 10. The method in accordance with claim 7 , the mapping occurring prior to execution of source code comprising the particular log-generating code expression. 11. The method in accordance with claim 7 , wherein the particular log-generating code expression is a code line. 12. The method in accordance with claim 7 , the mapping also mapping one or more portions of the log statement to one or more portions of the particular log-generating code expression, the method further comprising: using the mapping to visually provide a specific correlation between at least one portion of the log statement and a corresponding portion of the particular log-generating code expression. 13. The method in accordance with claim 12 , the corresponding portion of the particular log-generating code expression representing data used to construct the at least one portion of the log statement. 14. The method in accordance with claim 7 , the mapping also mapping one or more portions of the log statement to one or more portions of the particular log-generating code expression, the method further comprising: using the mapping to visually provide a specific correlation between each of a plurality of portions of the log statement and corresponding portions of the particular log-generating code expression. 15. The method in accordance with claim 7 , wherein the particular log-generating code expression is included in compiled code. 16. The method in accordance with claim 7 , wherein the particular log-generating code expression is included in source code. 17. The method in accordance with claim 16 , the source code comprising a plurality of log-generating code expressions, and wherein identifying the one or more candidate log-generating code expressions comprises: determining a regular expression for each of at least some of the plurality of log-generating code expressions of the source code; and analyzing if the log statement matches any one of the regular expressions, and if there is a match, determining that the respective matching log-generating code expression is a candidate for having generated the log statement. 18. The method in accordance with claim 17 , wherein if there are multiple candidate log-generating code expressions identified as candidates for having generated the log statement, the method further comprising reducing or prioritizing the multiple candidate log-generating code expressions by assigning a match score to each one of the multiple candidate log-generating code expressions. 19. The method in accordance with claim 7 , the identifying of the one or more candidate log-generating code expressions comprises: evaluating a compiled version of code comprising the one or more candidate log-generating code expressions to find matching portions in the compiled code; and finding source code that corresponds to the matched portions of the compiled code. 20. One or more hardware storage devices that store computer-executable instructions that are structured such that, when executed by executable by one or more processors of a centralized identity system to cause the centralized identity system
Environments for analysis, debugging or testing of software · CPC title
using diagnostics (G06F11/0703 takes precedence) · CPC title
Visualisation of programs or trace data · CPC title
by tracing the execution of the program · CPC title
Structural analysis for program understanding · CPC title
Related publications grouped by family.
Answers are generated from the same data shown on this page.