# Default Configuration

ShipWithDjango offers robust logging capabilities by integrating with Sentry and BetterStack, two powerful tools for monitoring, error tracking, and troubleshooting. Proper logging is essential for maintaining the health and performance of your application, helping you to quickly identify and address any issues that arise.

You can learn more about these services here:

* [Sentry](https://sentry.io/welcome/)
* [BetterStack](https://betterstack.com/)

The logging settings are managed in the `CONFIG/logging.py` file, where you can configure the path for local log files and enable integration with Sentry or BetterStack.

### Local Log File

The `LOGFILE_PATH` setting specifies where Django's error logs should be written. By default, logs are stored in the `app.log` file located within the `/logs` directory of your project:

```python
LOGFILE_PATH = 'app.log'  # Path is relative to the /logs directory
```

You can change this path if you need to store logs in a different location or with a different file name.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.shipwithdjango.com/logging/default-configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
