DEV Community

loading...

Discussion on: Ratlog.js – JavaScript Application Logging for Rats, Humans and Machines

Collapse
wmhilton profile image
William Hilton • Edited

Will do! In fact, I just filed an issue on the Github repo. ;) A rather comical beginner mistake I made that could be worked around with a bit of typeof checking.

I just want to add that it is super cool that tags work with chalk:

const log = require('ratlog')(process.stdout)
const warn = log.tag(chalk.red('warning'))
log('Normal log')
warn('Warning log')

screenshot

hmm having trouble getting this screenshot embedded.
thepracticaldev.s3.amazonaws.com/i...

Thread Thread
jorinvo profile image
jorin Author • Edited

oh neat! I didn't know about this :) Would probably a helpful thing to add this as a note in the docs

Edit: I added this as a note in the readme :)