06.27.05

X-Log Library v1.1

Posted in Programming at 12:57 pm by Nick

Ok, I’ve made a few changes. First off, there is a little change in logging format. Secondly, it now uses an XSLT template to convert the log into pseudo-XHTML. Luckily, this was easy to slap togeather. The template was originally created by for the article previously posted (http://www.gamedev.net/reference/programming/features/xmltech/) about XML-style logs, but I modified it to fit mine. Kudos to Jack “jollyjeffers” Hoxley and Oli “evolutional” Wilkinson for writing it. Secondly, if the file doesnt exist within the log directory, it will create it (the XSLT template that is). So, you can still safely delete the whole log directory without fearing anything. There shouldn’t be any changes to function calls. So, happy log viewing!

The new library and code can be found at the same place as before.

The library:
http://www.nick-cash.com/download/xlib/xlib.zip

The exported code:
http://www.nick-cash.com/download/xlib

[EDIT]
To make the change more clear, you can now see an example. Follow this link to see an example log file. Notice how you link right to the XML file, and if you hit view source it shows the XML. The key is in the line:

< ?xml-stylesheet type="text/xsl" href="xslt.xsl" ?>

So, yeah…..

Leave a Comment