Kolog
Advanced logging util for nodejs
Installing:
NPM:
npm i kolog
Yarn:
yarn add kolog
Example:
var Kolog = var logger = scope: 'normal logs' console loggerloggerloggerloggerlogger
This will log:
--LOGGER--
normal logs: genericLog
normal logs: ⚠ Warning
normal logs: ✖ error
normal logs: ✔ success
normal logs: ℹ info
It also supports custom loggers!
var Kolog = var logger = scope: 'normal logs' types: name: "update" color: "blue" scope: 'Updates' emoji: '' logger
This will log:
Updates: Hey
Custom loggers also support templates, here is an example:
var Kolog = var logger = scope: 'normal logs' types: name: "update" color: "blue" scope: 'Updates' emoji: '' template: "New update with name: {text}" logger
It will log:
Updates: New update with name: v.1.2.79
The result of the examples are colored!