Logging

by Nickr5
A convenient and easy-to-use logging system for DM.
ID:106327
 
After reading this thread on the forums, I decided to come up with an easy way to write logs and keep track of entries in them. The result is my new n_Log library. The library (by default) writes to an XML file which can then be viewed, sorted, and filtered by the included log viewer application. I'm planning to write a more comprehensive article for Dream Makers some time soon, but for now take a look at the documentation. Feedback is greatly appreciated!

It's licensed under the MIT License.

Edit: Here are some screenshots of the log viewer.




Even made an exe for it :O.
Is the viewer app written with DM as well?
No, it's written in C#
I'm really liking the library. Would it be possible to take a look at the C# source as well?

And, Happy New Year (just a few hours). ;)
I get a runtime error every time I use change log type.
runtime error: Cannot execute null.GetChildren().
proc name: GetStartID (/output/xml/GetStartID)
usr: Darker Legends (/mob)
src: /output/xml (/output/xml)
call stack:
/output/xml (/output/xml): GetStartID()
/logger (/logger): SetOutput(/output/xml (/output/xml))
Darker Legends (/mob): ChangeLogType()
It looks like for some reason your log.xml file doesn't have a <log> element anywhere (maybe it's blank?). I can add a check in the library, but for now try deleting or renaming the file.