This page explains how to send data from a Node.js app to Axiom through Winston.
API_TOKEN
with the Axiom API token you have generated. For added security, store the API token in an environment variable.Replace DATASET_NAME
with the name of the Axiom dataset where you want to send data.winston.format.errors
formatter. For example:
exceptionHandlers
and rejectionHandlers
. For example: