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

include log level in log line #7

Closed
wants to merge 1 commit into from
Closed

include log level in log line #7

wants to merge 1 commit into from

Conversation

phritz
Copy link
Contributor

@phritz phritz commented Mar 22, 2022

No description provided.

@phritz phritz requested a review from arv March 22, 2022 04:20
// This really isn't the right place to put the log level tag, we should instead
// have a formatter that can be passed to a logger (including the consoleLogger)
// and we can then use that formatter regardless of where the log is going.
console[level](logLevelTag[level], ...args);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like this. console.log already outputs these with differently:

Screen Shot 2022-03-22 at 13 54 24

I guess what you want is for nodejs to output them differently. Maybe add a specific nodejs LogSink?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok try #9 on for size. i bumped the version as part of that change, but did not publish a new package (wanted to wait for you to give the thumbs up).

@phritz phritz closed this Mar 23, 2022
@phritz phritz deleted the ph/label branch March 23, 2022 00:17
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

Successfully merging this pull request may close these issues.

None yet

2 participants