TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Better logging during Node.js development

4 pointsby epegzzabout 4 years ago

2 comments

epegzzabout 4 years ago
I always had trouble finding those console logs in the console that I add for debugging. So I made this pretty log formatter (for Winston) that separates each statement via a blank line, colorizes it, pretty-prints the metadata and includes information where in the source the log statement was used. Feedback welcome! :)
andretti1977about 4 years ago
Very interesting. Coming from the java world i'm very perplex at logging with nodejs and still haven't found a solution that makes me feel comfortable: you have to throw errors and analyze the stack to get the calling method or another thing that can happen with winston is that chronological order is not guaranteed
评论 #26717357 未加载