npm.io
0.7.0 • Published 8 years ago

k-log

Licence
MIT
Version
0.7.0
Deps
0
Vulns
0
Weekly
0

k-log Build Status

zero dependencies logger, as minimal as possible.

install

simply download it from npm.

$ npm i -D k-log

usage

Require it in your script and feed it a writestream to get the logger function back.

const logStream = fs.createWriteStream(path.join(__dirname, `application.log`), { flags: 'a' })
const log = require('./lib/logger')(logStream)

Tests

$ npm test

license

MIT Kalium