1.0.6 • Published 7 years ago

pino-tcp v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

pino-tcp

NPM Version

TCP transport for pino, used to send logs to logstash for elasticsearch.

Installation

npm i pino-tcp

Usage

const config = {
    host: "127.0.0.1",
    port: 40000,
    child: {name: 'myName', app: 'myApp', group: 'myGroup', env: 'test'}
};

const log = require('./')(config);
log.info({code: 200}, 'hello');

Tests

no scripts

Contributing

...

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago