totlog
The only true log: zero dependencies, categories, colors, events for flexible support of additional appending logic. Bonus: slack and logstash appenders. Extra bonus: (almost) everything is tested.
How to use
mymodule.js
const log = __filenamelog// will output colored content to console with// - time// - category = module filename relative to project root folder// - level// - formatted message
Advanced
log.js
const log = moduleexports = logconst slack = logappenderslog// notice how easy it is to define custom appending logic// everything you need is JS knowledge// without experiencing complex and/or obscure APIs
mymodule.js
const log = __filenamelog// message will appear both in console and in slack
Appenders
Slack
const slack = logappendersconst logstashTcp = logappendersconst logstashUdp = logappenders
License
MIT