support file out in logger and fixes.