> For the complete documentation index, see [llms.txt](https://xeinmod.gitbook.io/xeinmod-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xeinmod.gitbook.io/xeinmod-wiki/bot-configuration/setup-of-logs-feature.md).

# Setup of logs feature :

## Enable logs and logs category :&#x20;

{% hint style="info" %}
Here are the different categories :&#x20;

* Logs : enable/disable logs feature on your server <mark style="color:red;">(required).</mark>
* Moderation : moderation actions such as clear, infraction deletion...
* Ticket : information about the ticket you close (number of message, ticket owner...)
* Message : message update, message deletion...
* User : user update such as nickname, tag, roles...
* Voice : voice connection, voice leave, voice kick, voice deafen...
* Sanction : logs about sanctions that are applied.
* Join\&Leave : information about user that join and leave your server.
  {% endhint %}

Execute the following command to enable or disable the category of logs you are interested in (or not) in the dropdown list.&#x20;

`!logs setup`

## Logs init

Execute the following command to initialize a category with the channels corresponding to the category you have enabled :&#x20;

`!logs init`\ <mark style="color:green;">Example :</mark> if you enabled message and sanction logs, this command will create a category with sanction-logs and message-logs channels.

## Logs channel :

{% hint style="info" %}
**Important :** You do not have to use this command if you have used the command `!logs init`
{% endhint %}

Execute the following command to setup the channel in which the information of the ticket will be sent (such as ticket transcript) :

`!logs [category] setChannel <ChannelID>`

| Argument  | Explanation                                             | Required |
| --------- | ------------------------------------------------------- | -------- |
| category  | The name of the category of logs (message, user ..)     | Required |
| ChannelID | Channel in which the ticket’s information will be sent. | Required |
