Log File Viewer
C programming is a simple process. Do a make, take care of the errors, do a make, take care of the errors, and so on. Unless, you’ve got my job, which is do a make, go to lunch, come back, and see whether three-quarters of a million lines have finished compiling; then look through the huge log file for errors.
To make spotting errors easier, you can create a Perl program that goes through a log file and highlights the errors.
But what constitutes an error? Obviously, a line with the word “Error” on it. But that’s not always true. Sometimes someone produces a module with a name like: STR_Error.c. Compiling this is not an error.
So your program must be flexible in deciding what is an error and what isn’t. You can solve this problem ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access