From a5546d6d70a628659cc775e4a3db430df5ca0fbf Mon Sep 17 00:00:00 2001 From: Osmond van Hemert Date: Fri, 21 Dec 2018 15:50:13 +0100 Subject: [PATCH 1/3] doc add stackdriver transport --- docs/transports.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/transports.md b/docs/transports.md index 6894a7e03..f581742f5 100644 --- a/docs/transports.md +++ b/docs/transports.md @@ -74,6 +74,7 @@ PR's to this document are welcome for any new transports! + [pino-papertrail](#pino-papertrail) + [pino-redis](#pino-redis) + [pino-socket](#pino-socket) ++ [pino-stackdriver](#pino-stackdriver) + [pino-syslog](#pino-syslog) @@ -240,6 +241,19 @@ how to setup [Kibana][kibana]. For Docker users, see https://github.com/deviantony/docker-elk to setup an ELK stack. + +### pino-stackdriver +pino-stackdriver is a transport that will forward logs to the [Google Stackdriver](https://cloud.google.com/logging/) log service through it's API. + +Given an application `foo` that logs via pino, a stackdriver log project `bar` and credentials in the file `/credentials.json`, you would use `pino-stackdriver` +like so: + +``` sh +$ node foo | pino-stackdriver --project bar --credentials /credentials.json +``` + +for full documentation of command line switches read [readme](https://github.com/ovhemert/pino-stackdriver#readme) + ### pino-syslog From 9a6f9bc8b82465f1c6c7cd96eaa34f6a6bbbf642 Mon Sep 17 00:00:00 2001 From: Osmond van Hemert Date: Fri, 21 Dec 2018 15:56:54 +0100 Subject: [PATCH 2/3] add npm link --- docs/transports.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/transports.md b/docs/transports.md index f581742f5..5cec71a7b 100644 --- a/docs/transports.md +++ b/docs/transports.md @@ -243,7 +243,7 @@ https://github.com/deviantony/docker-elk to setup an ELK stack. ### pino-stackdriver -pino-stackdriver is a transport that will forward logs to the [Google Stackdriver](https://cloud.google.com/logging/) log service through it's API. +The [pino-stackdriver](https://www.npmjs.com/package/pino-stackdriver) module is a transport that will forward logs to the [Google Stackdriver](https://cloud.google.com/logging/) log service through it's API. Given an application `foo` that logs via pino, a stackdriver log project `bar` and credentials in the file `/credentials.json`, you would use `pino-stackdriver` like so: From 482528cfd4700ecfc86397891f01a94c79fa90d1 Mon Sep 17 00:00:00 2001 From: David Mark Clements Date: Fri, 21 Dec 2018 16:47:38 +0100 Subject: [PATCH 3/3] Update docs/transports.md Co-Authored-By: ovhemert --- docs/transports.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/transports.md b/docs/transports.md index 5cec71a7b..887f6a76c 100644 --- a/docs/transports.md +++ b/docs/transports.md @@ -252,7 +252,7 @@ like so: $ node foo | pino-stackdriver --project bar --credentials /credentials.json ``` -for full documentation of command line switches read [readme](https://github.com/ovhemert/pino-stackdriver#readme) +For full documentation of command line switches read [readme](https://github.com/ovhemert/pino-stackdriver#readme) ### pino-syslog