bole-stream
Stream data into a bole logger. Allows fine grained control over what is logged from a stream. Works exceptionally well in conjunction with http-ndjson.
Installation
$ npm install bole-stream
Usage
const boleStream = const httpNdjson = const bole = const http = bole http
API
writeStream = boleStream(opts)
Create a new Bole writestream. opts
can contain the following values:
- name: the default log name (defaults to
bole
) - level: the log level. Can be one of
debug
,info
,warn
anderror
boleStream.obj(opts)
{ objectMode: true }
shorthand.
writeStream.destroy(err?)
Close the stream manually.