logerr

a simple logging utility

Usage no npm install needed!

<script type="module">
  import logerr from 'https://cdn.skypack.dev/logerr';
</script>

README

loggerer

$ npm install logerr

import { ledger as log, logerr } from 'logerr'

log('myLog')
// creates myLog.log inside of ${__dirname}

log.myLog('hello werld')
// myLog.log now contains data

log._suppress()
log.myLog('not gonna be appended')
logerr('also not gonna be appended')
log._suppress(false)
log.myLog('back in business')

log.myLog.reset()
// myLog.log is empty again...

logerr("OMG DEFCON!")
// err.log in ${__dirname} now contains data