#fastify inject nestjs managed dependency

10 messages · Page 1 of 1 (latest)

marsh egret
#

How do I give the fastify adapter a nestjs managed service for its dependency?

pale hearth
#

What is it you're trying to achieve?

marsh egret
#

I have a S3Logger service that given a MyLogStatement sends it to s3

#

That fastify adapter already has a hook for logging and i want to tie my S3Logger into it so I can siphon my request/responses to s3

pale hearth
#

Okay. Without Nest, how do you use this fastify hook?

marsh egret
#

never used it before

#

Only using the fastify adapter b/c the docs say it's more performant than express and some project manager read that and gave us that marching order

#

So trying to figure out how to hook it into the rest of our nestjs app

pale hearth
#

So what's Fastify's usual logging API you're trying to use here?

marsh egret
#

i think under the hood it is pino