pino-socket
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "pino-socket", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A pino 'transport' for writing to a tcp or udp socket", | ||
@@ -11,2 +11,5 @@ "homepage": "https://github.com/jsumners/pino-socket", | ||
}, | ||
"bin": { | ||
"pino-socket": "./psock.js" | ||
}, | ||
"keywords": [ | ||
@@ -13,0 +16,0 @@ "pino", |
@@ -7,4 +7,20 @@ # pino-socket | ||
You should install install `pino-socket` globally for ease of use: | ||
```bash | ||
$ npm install --production -g pino-socket | ||
``` | ||
[pino]: https://www.npmjs.com/package/pino | ||
## Usage | ||
Given an application `foo` that logs via [pino][pino], and a system that | ||
collects logs on port UDP `5000` on IP `10.10.10.5`, you would use `pino-socket` | ||
like so: | ||
```bash | ||
$ node foo | pino-socket -a 10.10.10.5 -p 5000 | ||
``` | ||
## Options | ||
@@ -11,0 +27,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17591
36