TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: I just open-sourced a small utility to make console.log better

15 点作者 jbail超过 11 年前

1 comment

ianbicking超过 11 年前
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 未加载