-
公开(公告)号:US08261241B2
公开(公告)日:2012-09-04
申请号:US12118001
申请日:2008-05-09
Applicant: Francisco Gutierrez , Assaf Landschaft , Salai Valarmathi Ramakrishnan , Michael Sprenglewski
Inventor: Francisco Gutierrez , Assaf Landschaft , Salai Valarmathi Ramakrishnan , Michael Sprenglewski
IPC: G06F9/44
Abstract: In one embodiment, a method for correlating log entries in a log file to the line numbers of formatted-string output functions in source code, where the formatted-string output functions contain instructions to generate the log entries in the log file. The method includes locating the formatted-string output functions in the source code, where each formatted-string output function contains a format string. Each format string is processed to generate a corresponding regular expression to match log entries outputted by the corresponding formatted-string output function. Each regular expression is associated with the line number of the corresponding formatted-string output function. The resultant list of regular expressions and corresponding line numbers is processed with the log file, where log entries in the log file are modified to indicate the line numbers associated with matching regular expressions.
Abstract translation: 在一个实施例中,一种将日志文件中的日志条目与源代码中的格式化字符串输出功能的行号相关联的方法,其中格式化字符串输出功能包含用于在日志文件中生成日志条目的指令。 该方法包括将格式化的字符串输出函数定位在源代码中,其中每个格式化字符串输出函数包含格式字符串。 处理每个格式字符串以生成相应的正则表达式,以匹配相应的格式化字符串输出函数输出的日志条目。 每个正则表达式与相应的格式化字符串输出函数的行号相关联。 正常表达式和相应行号的结果列表将使用日志文件进行处理,日志文件中的日志条目将被修改,以指示与匹配正则表达式相关联的行号。
-
公开(公告)号:US20090282391A1
公开(公告)日:2009-11-12
申请号:US12118001
申请日:2008-05-09
Applicant: Francisco Gutierrez , Assaf Landschaft , Salai Valarmathi Ramakrishnan , Michael Sprenglewski
Inventor: Francisco Gutierrez , Assaf Landschaft , Salai Valarmathi Ramakrishnan , Michael Sprenglewski
IPC: G06F9/44
Abstract: In one embodiment, a method for correlating log entries in a log file to the line numbers of formatted-string output functions in source code, where the formatted-string output functions contain instructions to generate the log entries in the log file. The method includes locating the formatted-string output functions in the source code, where each formatted-string output function contains a format string. Each format string is processed to generate a corresponding regular expression to match log entries outputted by the corresponding formatted-string output function. Each regular expression is associated with the line number of the corresponding formatted-string output function. The resultant list of regular expressions and corresponding line numbers is processed with the log file, where log entries in the log file are modified to indicate the line numbers associated with matching regular expressions.
Abstract translation: 在一个实施例中,一种将日志文件中的日志条目与源代码中的格式化字符串输出功能的行号相关联的方法,其中格式化字符串输出功能包含用于在日志文件中生成日志条目的指令。 该方法包括将格式化的字符串输出函数定位在源代码中,其中每个格式化字符串输出函数包含格式字符串。 处理每个格式字符串以生成相应的正则表达式,以匹配相应的格式化字符串输出函数输出的日志条目。 每个正则表达式与相应的格式化字符串输出函数的行号相关联。 正常表达式和相应行号的结果列表将使用日志文件进行处理,日志文件中的日志条目将被修改,以指示与匹配正则表达式相关联的行号。
-