to-logflare
v0.1.1
Published
An unoffcial npm package to send logs to logflare (logflare.app)
Downloads
3
Readme
to-logflare
An unoffcial npm package to send logs to logflare (logflare.app)
CLI
Install
$ npm install -g to-logflare # or yarn global add to-logflare
Usage
some-command | to-logflare --source source-id-here --api-key api-key-here
API
Install
$ npm install to-logflare # or yarn add to-logflare
Usage
const toLogflare = require('to-logflare');
toLogflare({
message: 'some message',
metadata: {
some: 'metadata'
},
source: 'source-id-here',
apiKey: 'api-key-here'
}).then(() => {
// Success
}).catch(err => {
// Error
});