added a simple loggin system based on this article:http://www.drdobbs.com/cpp/a-lightweight-logger-for-c/240147505

all the code is just copied from there, I have no credit for the system.