> For the complete documentation index, see [llms.txt](https://tefox-scripts.gitbook.io/tefox-scripts-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tefox-scripts.gitbook.io/tefox-scripts-docs/tefox-scripts-documentation/tefox_multicharacter/configuration/logs.md). Agents can also search and read this documentation through its [MCP server](https://tefox-scripts.gitbook.io/tefox-scripts-docs/~gitbook/mcp).

# Logs

#### 📋 Discord Logging

Every key event can be sent to your Discord server as a formatted embed, giving your staff instant visibility over character activity.

**Logged events**

| Event          | Triggered when                                         |
| -------------- | ------------------------------------------------------ |
| `playerJoin`   | A player enters the server with a character            |
| `playerLogout` | A player uses `/logout` or disconnects from the server |
| `charCreate`   | A new character is created                             |
| `charDelete`   | A character is permanently deleted                     |
| `suspicious`   | Someone attempts to delete a character they do not own |

**Included in every log**

License · Discord tag · In-game name · Character name · Citizen ID

{% hint style="info" %}
Leaving a webhook field empty disables that specific log. You can also paste the same URL into every field to send all logs to a single channel.
{% endhint %}

**Configuration**

```lua
Config.Logs = {
    Enable = true, -- Master switch for all logs

    ServerName = "SERVER RP",           -- Shown in the embed footer
    BotName = "Multicharacter Logs",    -- Bot name in Discord
    BotAvatar = "Bot avatar image URL", -- Direct image link (.png / .jpg)

    Webhooks = {
        playerJoin   = "Webhook URL", -- Player entered the server
        playerLogout = "Webhook URL", -- Player used /logout or disconnected
        charCreate   = "Webhook URL", -- New character created
        charDelete   = "Webhook URL", -- Character deleted
        suspicious   = "Webhook URL", -- Tried to delete a character they don't own
    },

    -- Embed colors in DECIMAL format (not HEX). Converter: https://discordlabs.org/tools/color-palette
    Colors = {
        playerJoin   = 3066993,  -- Green
        playerLogout = 15105570, -- Orange
        charCreate   = 3447003,  -- Blue
        charDelete   = 15158332, -- Red
        suspicious   = 10038562, -- Dark Red
    }
}
```

{% hint style="warning" %}
Colors must be written in **decimal** format, not HEX. Use the converter linked above to get the decimal value of any color.
{% endhint %}
