node.js - Log system for NodeJS Framework -
i've created little pretty framework use when building nodejs web service i'm facing little problem hope you'll me resolve.
being java dev years, i'm used slf4j (http://www.slf4j.org/)
i can use interface define error/info/warning logs. users of frameworks can decide implementation want use , level of logs framework needed.
going node, have absolutely no idea how it.
is there way define logs , let framework users choose implementation , levels want logs?
you can use bunyan have log leveling,
log.info log.error log.warning
Comments
Post a Comment