Skip to content

How to connect it to Datadog #187

Answered by RobinTail
RobinTail asked this question in Q&A
Discussion options

You must be logged in to vote

Since express-zod-api is using Winston for logging, the solution is relatively simple.

You need to configure a custom Winston logger that either

  • saves logs to a file where Datadog Agent process them (recommended solution);
  • or transmits them to Datadog API directly.

In this article you can find more information and details:
https://docs.datadoghq.com/logs/log_collection/nodejs/?tab=winston30

Replies: 1 comment

Comment options

RobinTail
Nov 6, 2021
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by RobinTail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant