> For the complete documentation index, see [llms.txt](https://docs.shipwithdjango.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.shipwithdjango.com/logging/using-better-stack.md).

# Using Better Stack

Better Stack (formerly known as Logtail) is another excellent option for centralized logging and monitoring. To integrate BetterStack with your application:

1. **Enable BetterStack**: Set the `USE_BETTERSTACK` variable to `True`.
2. **Set Source Token**: Set the `BETTERSTACK_SOURCE_TOKEN` variable to the source token provided by BetterStack during setup.

```python
USE_BETTERSTACK = False  # Change to True to enable BetterStack
BETTERSTACK_SOURCE_TOKEN = None  # Set this to your BetterStack source token
```

When BetterStack is enabled, your application will send logs and error data to BetterStack for centralized monitoring and analysis.
