Settings

Theme

Intel - nodejs logging that plays nice with console.log

seanmonstar.com

38 points by seanmonstar 12 years ago · 22 comments

Reader

ChikkaChiChi 12 years ago

Name is definitely going to be confusing. I completely expected this to be something Intel was doing nodejs related.

  • benologist 12 years ago

    The name is going to be forced to change, the OP should just rename it now while it's not an issue.

    • AsymetricCom 12 years ago

      Even if there wasn't a copyright issue, what kind of name is 'intel' anyway? Might as well called it 'data' or 'stream'.

      • benologist 12 years ago

        You might as well call it Microsoft, HP, or IBM and pretend those are generic names within the confines of our industry.

ricardobeat 12 years ago

In case anyone is looking for a debug utility, not for archival logs, look no further than http://github.com/visionmedia/debug. Named loggers, nice formatting, easy to use and you get timers for free:

    require('debug')('controllers:something')
    debug('doing stuff', someObj)
then selectively enable it in the command-line with

    DEBUG=controllers:* node index.js
Express has debug built-in, so setting debug to express:* will turn on logging for it's internals. Just saying this 'cause I wish more tools came with built-in logging :)
mratzloff 12 years ago

Not directly related, but the author mentioned Winston, which made me think: who are these people using Node.js that don't need log rotation? Winston doesn't have built-in support. The only logging library I've found that supports this without extra effort is log4node.[1]

[1] https://github.com/bpaquet/log4node

dubcanada 12 years ago

I thought that Intel made a nodejs logging tool, little did I know that the tool is just called Intel.

I feel slightly disappointed (no offence op)...

cleverjake 12 years ago

Sortof an odd choice for a name, considering the brand recognition in the tech industry, otherwise neat.

lucian1900 12 years ago

I wouldn't exactly call Python's logging module glorious. Its API is unintuitive and foreign (lifted from Java), any customisation requires subclassing and it destroys performance on PyPy (because of the constant use of sys.exc_info().

lfuller 12 years ago

I'd like to use this on some of my projects but I know the dev is going to receive a cease & desist from Intel sooner rather than later, breaking dependencies.

OP - could you rename the library to make us all feel a little bit better about using it?

  • hamburglar 12 years ago

    When naming a project, it seems a lot of people don't stop and think about what it's going to be like to try to Google it.

mmohsenazimi 12 years ago

I tried to make a better console for Node too![1]

[1]https://npmjs.org/package/better-console

yOutely 12 years ago

An excellent example of why you never let developers name things

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection