I have a bunch of log files that are pure text. Here is an example of one ...
Overall Failures Log SW Failures - 03.09.2010 - /logs/swfailures.txt - 23 errors - 24 warnings HW Failures - 03.09.2010 - /logs/hwfailures.txt - 42 errors - 25 warnings SW Failures - 03.10.2010 - /logs/swfailures.txt - 32 errors - 27 warnings HW Failures - 03.10.2010 - /logs/hwfailures.txt - 11 errors - 31 warnings
These files can be quite large and contain a lot of other information. I would like to create an HTML file from this log that will add links to key parts and allow the user to open other log files as a result ...
SW Failures - 03.09.2010 - <a href="/logs/swfailures.txt">/logs/swfailures.txt</a> - 23 errors - 24 warnings
This is greatly simplified since I would like to add many more links and other html elements. My question is: what is the best way to do this? If the files are large, should I generate html before serving it to the user or will jsp do it? Should I use perl or other scripting languages ββfor this? What are your thoughts and feelings?
source share