First part of LogHandler

new logging mechanism