Log file analyzer using C++