Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use os.EOL for line endings for text loggers #590

Merged
merged 1 commit into from
Jun 27, 2020

Conversation

bwknight877
Copy link
Contributor

This change uses os.EOL for line endings instead of \n

This is useful for those of us using NodeJS on Windows where the easiest log reader is Notepad.exe

Since the node runtime knows the platform, os.EOL is the most correct way to add a line ending to a text file

Fixes #589

This change uses `os.EOL` for line endings instead of `\n`

This is useful for those of us using NodeJS on Windows where the easiest log reader is Notepad.exe

Since the node runtime knows the platform, `os.EOL` is the most correct way to add a line ending to a text file

Fixes trentm#589
@trentm
Copy link
Owner

trentm commented Jun 27, 2020

Thanks!

(FYI on the delay in my responding: #335 (comment))

@trentm trentm merged commit 33adee5 into trentm:master Jun 27, 2020
trentm pushed a commit that referenced this pull request Jun 27, 2020
This change uses `os.EOL` for line endings instead of `\n`
This is useful for those of us using NodeJS on Windows where the easiest log reader is Notepad.exe
Fixes #589
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bunyan writes \n for newlines on Windows platforms
2 participants