It's probably because the enterprise.log file isn't inserting the line breaks you want. You may want to try the dos2unix or unix2dos command to get them inserted and see whether it works when the HTML include points to the updated file.
I configured sysklogd to gather logs from all my Cisco devices, and created a web page to view the logs from any PC on the network. I'm using the following code that I got off the web for doing this (see bottom of post)
The problem is that the output of this file does not word wrap, and it's very jumbled to view. If I do a "cat syslog" the file views fine, but in the browser there are several entries on each line. Is there any way to format the output? Create some sort of table or border to not allow it to have multiple events on each line? Is there some other app I can use to point to my log file to read it?
<title>Enterprise Syslog Log File</title>
MyCorp Enterprise Syslog Log
<!--#include file="enterprise.log" -->
Let us know if that works.Code:<pre> <!--#include file="enterprise.log" --> </pre>