newheelog
A new-wheel-logger for NodeJs. Simple do its task.
A previous version was based on winston and winston daily rotate file. There are some traps when used with cluster based workers. So New-wheel Logger is created.
- Short logging api: as it should be
- Self contained tiny code. No additional dependencies
- Optionally write log to file, with rotation based on size
- Optionally decorate console, with colors
- Log time, level, and auto-detected file/module name.
- support custom label (for cluster mode workers, etc)
- NodeJs default console.log/util.format convension
//easy apiconst log = //explicit levelloglogloglog //formattinglet d = a: 1 b:'Transylvania' //alternativesconst info warn error = Promise
Options
const nwlog = nwlog const log =