A structured-log plugin that writes log events to Seq.
Uses es6-promise and isomorphic-fetch to polyfill Promises and fetch, respectively.
npm i structured-log-seq-sink --save
var structuredLog = require('structured-log');
var seqSink = require('structured-log-seq-sink');
var logger = structuredLog.configure()
.writeTo(seqSink({ /* ... options ... */ }))
.create();| Parameter | Description |
|---|---|
apiKey |
(optional) API key to use |
url |
(required) URL to the Seq server |
To build the modules yourself, ensure Rollup is installed globally, and run the build script:
npm i rollup -g
npm run build
Then, you can test the bundled module by running:
npm test