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

[Docs]: Fix wrong code on README.md documentation #2319

Closed
viniciusteixeiradias opened this issue Jun 28, 2023 · 1 comment
Closed

[Docs]: Fix wrong code on README.md documentation #2319

viniciusteixeiradias opened this issue Jun 28, 2023 · 1 comment

Comments

@viniciusteixeiradias
Copy link
Contributor

🔎 Search Terms

Syntax error on README.md

The problem

https://github.com/winstonjs/winston#common-transport-options

Should be:

transports: [
    new winston.transports.File({
      filename: 'error.log',
      level: 'error',
      format: winston.format.json()
    }),
    new winston.transports.Http({ // add winston. before transports
      level: 'warn',
      format: winston.format.json()
    }),
    new winston.transports.Console({ // add winston. before transports
      level: 'info',
      format: winston.format.combine(
        winston.format.colorize(),
        winston.format.simple()
      )
    })
  ]

What version of Winston presents the issue?

v3.9.0

What version of Node are you using?

v16.8.0

If this worked in a previous version of Winston, which was it?

No response

Minimum Working Example

No response

Additional information

No response

viniciusteixeiradias added a commit to viniciusteixeiradias/winston that referenced this issue Jun 28, 2023
@viniciusteixeiradias viniciusteixeiradias changed the title [Bug]: Syntax error on README.md [Docs]: Fix wrong code on README.md documentation Jun 28, 2023
@DABH
Copy link
Contributor

DABH commented Jun 28, 2023

Closed via above referenced PR

@DABH DABH closed this as completed Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants