tagol
v1.0.0
Published
Another logger using template literals for nodejs and browsers
Downloads
1
Maintainers
Readme
tagol
Another logger using template literals for nodejs and browsers
WIP !
Load
Browsers
<script src="//unpckg.org/tagol/tagol.js"></script>
or
<script type="module">
import log from '//unpckg.org/tagol/tagol.js'
</script>
Nodejs
require('tagol')
or
import 'tagol'
or
import log from 'tagol'
or
import { I: info, E: error } from 'tagol'
Usage
log `Some simple output`
log.S `Success`
log.W `Warning`
log.I `Info`
log.E `Error`
log `Some
multiline
text`
let substitution = { text: 'foo', obj: {some: 42} }
log.E `Error with ${substitution.text}s on object ${substitution.obj}o !`