Closed AlexanderKaran closed 3 years ago
I would recommend to create a new package.
I would recommend to not use a Writable but rather use async iterators, https://github.com/pinojs/pino-abstract-transport, and https://github.com/mcollina/hwp.
Thank you, will give it a crack this week.
Would be great to point to these to libraries in the docs in the transport section.
I've tagged this as a good first issue for documentation.
Addressed in https://github.com/pinojs/pino/pull/1174
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Hi Everyone
Brand new to pino and been creating a transport to send data to Cloudwatch-logs. Doing this as the old package has not been updated for a while and is now legacy.
The code works fine, I guess I am asking if what I am doing is correct. I have created a transport that inside its writeable stream formats the data for Cloudwatch and then sends it on its way. Is there a better way?
Here is the code. createClient() just returns the AWS connection.