Basic xml logging, no rotation for the moment, should still be thread safe. Use with care.
Add log levels. While there do some cleanup, there is still room for improvement though...