added logfile and websocket logging support