#NestJS Logging

1 messages · Page 1 of 1 (latest)

latent pecan
#

Hi, thanks for making such a good and easy to use product, I love it!. Im having a little trouble seeing any logs in my app after the initial startup logs. some help would be greatly appreciated

lunar runeBOT
#

Project ID: 8059b46b-5bdb-488c-b3c0-efafad9c2917

exotic parrotBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

latent pecan
#

8059b46b-5bdb-488c-b3c0-efafad9c2917

#

just to confirm the initial logs work, but logs that I have in services or resolvers don't

pure harness
#

are you using any kind of logging framework?

latent pecan
#

winston

#

but even when i was using the default logger, logs still werent coming through

pure harness
#

ah thought so, I've seen people have trouble with Winston, make sure you are logging to stdout/stderr without any kind of buffering

latent pecan
#

what framework would you recommend ?

pure harness
#

console.log() and console.error()

latent pecan
#

but i have a default stdout in the main.ts file that logs successfully, but anywhere else it doesnt

#

just to double check i see the application logs in the deploy logs in the observability tab right ?

pure harness
#

in either the deployment logs or observability tab, yes

pure harness
latent pecan
#

okay cool

#

okay will do redeploying now