Skip to main content

Install SDK

Prerequisite You should have Python v3.10 or higher installed.
Install the sdk via your preferred package manager

Setup logger

There are two ways you can initialize the logger
Set the following environment variables, all of them are required.
And then initialize the logger with:
You can also pass the configuration values at runtime
python
You could also define both. However, note that values defined at runtime will take precedence over env variables. For example, if you need dynamic trace_id for each n number of scripts, you can set a default value in .env file and override by setting the same at runtime.

Send logs

Your logger is now ready to send logs.
python
Go to app.usenavigator.co to start using Navigator.

Optional Configuration

By default, the logging via sdk is synchronous and best-effort with retries. You can configure retries and delays but is optional.
Add these in addition to the required env variables
Add these in addition to the required env variables

Next Steps

Examples

Get your docs set up locally for easy development

Key concepts

Get to know the essentials