# Accessing Server Logs

Provided that you have a Base Rules Build equal to or higher than 20200 you can obtain the server’s native logs. By default the log location is set relative to the home folder. Provided that the log location is a valid folder and the user has both tracing and performance data retrieval permissions, logs can be viewed.

To set a different log location, add the following lines to your `magic.properties` file:

<figure><img src="/files/65RpsGLgjCGCwOsmKsmU" alt=""><figcaption><p>magic.properties file content</p></figcaption></figure>

Please note that the above example applies to instances running under the standard Jetty installation of the software. If you are running on a different application server then you will need to modify the location accordingly.

Provided that you have the correct Base Rules Build deployed you can view the logs:

<figure><img src="/files/tj15EvbWlhleiVnEhniQ" alt=""><figcaption><p>View server logs</p></figcaption></figure>

This applies whether the server is started or not.

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th data-hidden></th><th data-hidden></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td>Viewing a log</td><td></td><td></td><td><a href="/pages/PUowUjcgspI3WNKZWycf">/pages/PUowUjcgspI3WNKZWycf</a></td></tr></tbody></table>


---

# 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.tomorrowx.com/cap/product-reference/accessing-server-logs.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.
