# Setup Logging

Sx Bot offers a wide variety of unique moderation logging for your server including message logs, reaction logs, image logs, invite logs, booster logs, user join/leave logs, and more!

## Set up your log channel

**1.** Create a channel for logs if you haven't already.

&#x20;**2.** Set the channel for the given logging module.\
**Example:`/logging message-logs set #message-logs`**\
**Example:`/logging images-logs set #images-logs`**\
**Example:`/logging reaction-logs set #reactions-logs`**

{% hint style="info" %}
If you type **`/logging help`** you can see a list of all the current supported logging modules.
{% endhint %}

**3.** Edit your channel's settings, and go to the "Permissions" tab.

**4.** From the "Roles/Members" selection, add Sx Bot.&#x20;

**5.** Allow Sx Bot to have the following permissions in the channel:

* View Channel
* Send Messages
* Embed Links
* Attach Files
* Use External Emoji

You can also use the built-in help guide the bot offers by using **`/logging help`** as seen below.

<figure><img src="https://3235107011-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPR38BTXhzW04xdbh6h1o%2Fuploads%2FtuXHfv2c68zg69vxuU4I%2FDiscord_hY6kr1mbbv.png?alt=media&#x26;token=3f9b9d5f-4d33-4d66-8f72-4af63e24620b" alt=""><figcaption><p>/logging help</p></figcaption></figure>


---

# 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.sxbot.io/moderation-logging/setup-logging.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.
