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

Console Transport not output to terminal window #1609

Open
1 of 2 tasks
Bene-Graham opened this issue Mar 1, 2019 · 2 comments
Open
1 of 2 tasks

Console Transport not output to terminal window #1609

Bene-Graham opened this issue Mar 1, 2019 · 2 comments

Comments

@Bene-Graham
Copy link

Please tell us about your environment:

  • winston version?
    • winston@2
    • winston@3
  • node -v outputs: 10.15.1
  • Operating System? macOS
  • Language? TypeScript 3.3

What is the problem?

What do you expect to happen instead?

The Console transport is not output to terminal window. This occurs in VSCode, iTerm, Default terminal

Code that creates the logger:

createLogger({
            level: logLevel,
            defaultMeta: {
                name: name
            },
            levels: config.npm.levels,
            transports: [
                new transports.Console(),
                new transports.File({
                    filename: "combined.log",
                    level: "info"
                })
            ]
        })

Other information

The File Transport works fine

From what I can tell from debugging is that the transsports/Console.js Log method is never called.

@DABH
Copy link
Contributor

DABH commented Mar 24, 2019

Not sure about default terminal (that should work?!) but for vscode sounds like a duplicate of #1544

@Ronkiro
Copy link

Ronkiro commented Jan 22, 2021

Also suffering that on WSL 2 (Debian)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants