from Hacker News

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

by jbail on 11/23/13, 10:11 PM with 5 comments

  • by ianbicking on 11/24/13, 12:10 AM

    console.stream() seems super fishy to me: https://github.com/jbail/lumberjack/blob/master/scripts/lumb...

    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 "logger = console.stream('component'); logger.info(...);" in my code – but that isn't how it works at all, it's just chaining and a method that means something more like "console.setLogName('component')"