Click here to Skip to main content
15,035,600 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i need a regular expression which can check the line by line in LOG FILe or TXT FILE(which contains the application errors)and give me the summary like,
type of error:exception/error
line of error:line no 20,etc
count of the errors or exceptions :40 exceptions,20 errors
poistion etc
Posted
Comments
OriginalGriff 3-Jan-11 6:28am
   
If you are asking use to write one for you, then we would need to see sample data - otherwise how do you expect us to have a clue about what you are trying to do?
CPallini 3-Jan-11 6:58am
   
You're faulty even at requirements level...

The code depends on the compiler that generated the log file and its version... For example, the formats change in each version of Visual Studio C++.
   
v2
Why don't you use the system log? It identifies warnings and errors, and you can retrieve this information programatically without using Regex.

   
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900