Skip to main content

Prerequisites

Install SDK

To install the SDK, run the following:

Create Pino logger

The example below creates a Pino logger with Axiom configured. Set the edge option to the edge domain that matches the region your dataset lives in — see Configure region for the full list.
After setting up the Axiom transport for Pino, use the logger as usual:

Configure region

Set the edge option on the transport to the edge domain for your Axiom deployment.
Always use the edge option to target a region. Don’t put a regional hostname in urlurl is reserved for non-ingest API operations and will not route ingest correctly.

Transport options

Examples

For more examples, see the examples in GitHub.