[Tutor] How to create a structure from a Log file

Alan Gauld alan.gauld at yahoo.co.uk
Sat Mar 9 13:04:10 EST 2019


On 09/03/2019 13:08, Asad wrote:

>            I would like to know , how can I approach this problem to create
> a easy structure from the logfile using python so I can review the logfiles
> quite efficiently . Please share suggestion tip or already written codes.

That depends on several things:

1) What is the format of the log file?
2) what data does it contain
3) what data do you need to see and organised by what criteria?
4) What do you mean by efficiency?
   - Speed of processing the logfile?
   - Speed of writing the reports?
   - Speed of generating the reports?

The OS and Python version would be useful too.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list