# Logging

**Premium only.** The logging system sends automatic notifications to a dedicated channel when important events occur on your server.

***

## Setup

### 1. Set the Logging Channel

```
/logger channel <#channel>
```

### 2. Enable Log Types

```
/logger add <log_type>
```

***

## Commands

| Command                              | Description                      |
| ------------------------------------ | -------------------------------- |
| :star2: `/logger channel <#channel>` | Set the channel for log messages |
| :star2: `/logger add <log_type>`     | Enable a specific log type       |
| :star2: `/logger remove <log_type>`  | Disable a specific log type      |
| :star2: `/logger list`               | List all enabled log types       |

***

## Log Types

| Log Type         | Description                                            |
| ---------------- | ------------------------------------------------------ |
| 🏆 Message Ranks | Logs when a member reaches a configured rank reward    |
| 🎉 Giveaways     | Logs when a giveaway ends, including winners           |
| 🕵️ Fake Invites | Logs when a member's join is detected as a fake invite |
| 🔔 Alert Invites | Logs when an invite alert is triggered                 |

***

## Example

After setting up the logger:

```
/logger channel #server-logs
/logger add Message Ranks
/logger add Giveaways
/logger add Fake Invites
```

The bot will automatically send detailed embed messages in `#server-logs` whenever one of these events occurs.

{% hint style="info" %}
You need an active premium subscription to use the logging system. See [Premium](/reference/premium.md) for details.
{% endhint %}


---

# 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.invite-count.xyz/features/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.
