I have got a log file as follows
The log file has the following format : Date/Time, Severity, Module(the number after the process name is the process id) and finally the diagnostic message as an example :
dd/mm/yyyy HH:mm:ss.mmm Severity Module Message
======================= ======== ====== =======
17-11-2008 17:01:17.590 SUCCESS wmlumberjack.exe:940 System Information. CPU speed
17-11-2008 17:01:22.090 INFORMATION winword.exe:3656 CWSWordAddIn::OnConnection.\WSWordAddIn.cpp(131) : -> VDE:Start
I need to write a code in C++ that is able to filter and display the results based on the severity selected by the user. As an example if the user selects to see only WARNINGS, the application should only display the lines in the log file that contain the WARNING attribute.