It is a very small but useful library. It contains the primary logging functions I've used in basically all of my programs that need logging (save my mud, it already had lots of logging stuff :P).
Here is a little synopsis, taken from the README file:
The library sports two different but useful ways of logging information. The first way is basic. It provides a
chronological output of logs by number in a text document. It will append, putting several spaces and dash's between
each "new" block every time the program is run. All of your logs will be in one file.
The second is a little more complicated, but a bit more useful, organized, and has potential for easier analysis. It will tell the line number, function, file and message for each log entry. It will also display when the log was created, and list the time when each log was entered. They will all be put in seperate files, with an increasing numerical prefix. It is all formated in XML format.
To avoid crashes, if you log directory doesnt happen to exist, it will create it for you. Each logging function uses an ellipsis (...) to accept a variable number of arguments and slap them into your message for you, taking out the trouble of printing your own strings.
-------------
The code may at least be worth looking at, but I'm sure you all have your own logging functions and wouldn't really want to look as such an amature's code. :P
In any event, you can view the code exported as html at:
http://ew.xidus.net/download/xlib
Or, you can download the code, readme, and compiled -WIN32- library at:
http://ew.xidus.net/download/xlib/xlib.zip
I already see a few things I want to change, but for the most part thats it. If someone would like to compile the library on a *nix system and send me the code/lib that would be fantastic, as I have no idea if what I have in there works or not. |