0.3.3 • Published 2 years ago
@dashkite/kaiko v0.3.3
Kaikō
A logging runtime for JavaScript
import * as log from "@dashkite/kaiko"
foo = (bar) ->
log.push "foo"
log.info bar
# do something ...
log.warn "uh-oh"
# do some other things ...
log.pop "foo"Later, you can write the log as rich JSON (meaning the objects JSON normally ignores are converted into values it can serialize for reference purposes):
log.write process.stdoutFrom there, you can pipe the output to a tool like fx.
npm test | fxOr, if you’re in the browser, just access the JSON:
log.toJSON()Installation
npm i @dashkite/kaiko