# 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](https://docs.invite-count.xyz/reference/premium) for details.
{% endhint %}
