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: I just open-sourced a small utility to make console.log better

15 pointsby jbailover 11 years ago

1 comment

ianbickingover 11 years ago
console.stream() seems super fishy to me: <a href="https://github.com/jbail/lumberjack/blob/master/scripts/lumberjack.js#L30" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jbail&#x2F;lumberjack&#x2F;blob&#x2F;master&#x2F;scripts&#x2F;lumb...</a><p>Here you are just changing a global default stream name, but it looks like you have some kind of alternate console objects. E.g., as though I could do &quot;logger = console.stream(&#x27;component&#x27;); logger.info(...);&quot; in my code – but that isn&#x27;t how it works at all, it&#x27;s just chaining and a method that means something more like &quot;console.setLogName(&#x27;component&#x27;)&quot;
评论 #6788514 未加载