Skip to content

Console transport should not us os.EOL as default for line endings #1787

@robross0606

Description

@robross0606

Winston defaults to using os.EOL for line endings, even on Console transport:
https://github.com/winstonjs/winston/blob/master/docs/transports.md#console-transport

However, base Node.js console always uses \n and many many libraries make this assumption. This has even been addressed by the Node.js developers directly here:
nodejs/node#5038

The Console transport should behave similar to the regular console and use \n as the default newline unless overridden.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions