Skip to content

Creating a program to generate stats from log file

Mingmar Dorjee Sherpa

Asked Apr 21, 2009, 1:40 AM EDT3 answers
Share
LinkedInX

Hi, I am new to C#, is possible to create a program that would generate stats from a application file. If yes, how do i go about doing it.

 

Log is in .txt format.

stats should contain number or errors, number of action perform by application.

3 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Stats? sorry I don't quiet understand your question, do you want to grab info from a txt document? what type of data? you can do this I imagine it would be per line like for example

    in the txt document you would have:
    line 1 "text goes here"
    line 2 "text goes here"
    line 3 "text goes here"

    and so on, you would be grabbing the WHOLE line value, this is to my understanding. I could be wrong i'm a newbie :P feel free to correct me i'm learning this still.
    0
  • 0
    When a application is launch, it would have logging of what is happening in the backend of the application. Should there be an error, it would be captured in a log.
    So I want to create something that would go through the log then search for number errors, number of action the application perform(such as calculation) and then create another text file where it would list a number or errors and the number of action perform
    0
  • 0
    Yeah that type of stuff is possible, look up exporting to log files or .txt.
    0