Logging API from ATQSoft original version in http://sourceforge.net/p/logall/code/HEAD/tree/