Fixed logging problem by setting level within each classes logger. Also worked on receive loop function a bit. Still not working and is now crashing xchat if I dont catch the exception...put in some TODOs :)