Added code the console logger to replace line-end character with real line ends