Fixes 'Broken pipe' exception when piping
Logger formating and naming added