Click here to Skip to main content
15,881,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: (untagged)
I have a server that creates multiple log files everyday. The log files are created in a subfolder with the date. For example:

C:\Mainfolder
C:\Mainfolder\2016-03-03\logfile1.log
C:\Mainfolder\2016-03-03\logfile2.log
C:\Mainfolder\2016-03-02\logfile1.log
C:\Mainfolder\2016-03-02\logfile2.log
C:\Mainfolder\2016-03-01\logfile1.log
C:\Mainfolder\2016-03-01\logfile2.log

Every log file is build up the same, but the information is different. For example:

C:\Mainfolder\2016-03-03\logfile1.log
NAME,4324,54326754,2016-03-03,765456,1,6543,65654,76547

C:\Mainfolder\2016-03-03\logfile2.log
NAME,4324,54326754,2016-03-03,765456,2,6543,65654,76547

I want to create a programm or webpage that can read this information and put the latest date on top so I can alway see the newest results. It would be nice if the output of this files can be shown in tables and manipulated, for instance:

Logfile1.log NAME1,4324,54326754,2016-03-03,2048,2,6543,65654,76547
Logfile2.log NAME1,4325,54326754,2016-03-03,1024,1,6543,65654,76547

NAME ID ID2 DATE SIZE RESULT (Last 3 not shown/irrelevant)
NAME1 4324 54326754 2016-03-03 2 MB OK
NAME2 4325 54326754 2016-03-03 1 MB FAILED

What is the best programming language to create something like this? I have no experiance programming, so I would like to know where/how to start creating this.

It is in a Windows enviroment, but I can also automaticly update the log files to a Linux webserver if that would be easier to create a website to read this information.

What I have tried:

I used google to find information but I get confused where to start.
Posted
Comments
ZurdoDev 3-Mar-16 9:44am    
Start with the System.IO namespace, https://msdn.microsoft.com/en-us/library/system.io%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396. You can use it to read files and folders on the hard drive.
Osseknar 3-Mar-16 10:28am    
Thanks for your fast answer RyanDev!

I see most examples are C# and VB, should I use Visual Studio for this?
ZurdoDev 3-Mar-16 10:59am    
Definitely. You can download a free version if you just google msdn visual studio, you'll see where you can get it from.

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