Click here to Skip to main content
15,887,822 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have a log file which is growing as the task progresses. I want to display the contents of this file (like Linux's 'tail -f') on the form to a component (multiline textbox probably).

I want to show the progress of the task submitted by the user through a button on the form, on the form itself.

The application that generates the logs is independent of the form that I am building.

PS: C++/VC++ is not my primary skill. I am developing the form as a project requirement.

What I have tried:

I have considered windows event logs or AllocConsole but does not seem to fit my requirement.
Posted
Updated 17-Jun-16 1:50am
v3
Comments
Sergey Alexandrovich Kryukov 17-Jun-16 10:11am    
Do you want to display the system log information? Do you have problems retrieving it? or is your problem just UI?
Of course "console", standard text console is unsuitable. More adequate UI element is a tree view, with added detail on node selection.
—SA
Syed Irfan Naqvi 17-Jun-16 14:01pm    
not the system log, the application logs, an application built in perl that writes its stdout and stderr to text files. If we could divide the requirement into two parts:
1. Implementing the tail -f functionality for a text file: Is this a proper solution? http://stackoverflow.com/a/31977550/5052232
2. Once I have the file content into a variable(looping the file for each line), which UI element could be used to hold this value, a simple multiline text box? How could tree view help here?
Sorry for my confusing questions. I am a beginner to VC++
BillWoodruff 19-Jun-16 0:04am    
It appears you are developing in C++ but the final product is in Perl ?

If that's accurate, why are you doing that ?

Search CodeProject for articles on logging; I know there are some here.

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