Your lines appears to be not split because unix-like OS's and windows have different conventions on what is treated as line separator. For more details look at answer to this question. You have two options to get lines properly separated.
- Setup your text editor properly. I.e. in Notepad++ you should choose Edit -> EOL Conversion -> Convert to Windows Format. Then save your file and reopen it.
- Make your procedure to write log file with Windows line separators. This approach is questionable. If these files are supposed to be used in any way on the server which have linux OS then it should has native format.