So, I have a customer who is having errors with an install of DNN and I am troubleshooting these items like a good little developer. After requesting that the customer send me the Event Log (excellent feature btw) I ran into a inconvience, how to read that thing!
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="your_xsl_filename.xsl"?>
<LogEntries>
[lots of stuff goes in here]
</LogEntries>
Save it as an XML and use the following XSL to format it for you. Enjoy.
<?xml version="1.0" encoding="utf-8"?>
<html xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Exception Log Viewer</title>
<style type="text/css">
.outer TH { background-color: #CCCCCC; text-align: left; vertical-align: top; font-size: 10pt; }
.inner TH { background-color: #EEEEEE; text-align: right; vertical-align: top; font-size: 10pt; }
TD { vertical-align: top; font-size: 8pt; };
</style>
</head>
<body style="font-family: Verdana;">
<table class="outer" cellpadding="4" cellspacing="0">
<xsl:for-each select="LogEntries/log">
<tr>
<th><xsl:value-of select="@LogTypeKey"/></th>
<th><xsl:value-of select="@LogUserName"/></th>
<th><xsl:value-of select="@LogCreateDate"/></th>
</tr>
<tr>
<td colspan="3" style="padding: 0px">
<table class="inner" cellpadding="2" cellspacing="0">
<xsl:for-each select="LogProperties/LogProperty">
<tr>
<th><xsl:value-of select="PropertyName"/></th>
<td><xsl:value-of select="PropertyValue"/></td>
</tr>
</xsl:for-each>
</table>
</td>
</tr>
</xsl:for-each>
</table>
</body>
</html>