NodeJS and Loggers (part 1)
Preamble
Brief interpretation of http://12factor.net/logs:
- Log is the stream of time-ordered events.
- App never concerns itself with routing or storage of its output stream.
- App should not attempt to write to or manage logfiles.
- App should write its event stream, unbuffered, to stdout.
Existing loggers
Following loggers have log management mechanism in the core of the module:
All of them have tons of transports/formatters/adapters in the core of module. Most of issues adressed to transports or log management.
Debug specific loggers:
- Of course debug
- NodeJS 0.11 util.debuglog
Not stdout loggers:
List will be updated
Written by Eugeny
Related protips
1 Response
Just found this as well – really small and neat: https://github.com/bluejamesbond/Scribe.js
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Log
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#