> ## Documentation Index
> Fetch the complete documentation index at: https://docs.newt.bot/llms.txt
> Use this file to discover all available pages before exploring further.

# Server log

> A record of what happens in your server, in one channel or many.

## <Icon icon="bolt" size={24} /> Quick setup

One command builds a hidden **Server Logs** category, makes the channels and switches every log on. Running it again reuses the same channels.

<CodeGroup>
  ```plaintext Syntax theme={null}
  /logging setup [style] [category]
  ```

  ```plaintext Example theme={null}
  /logging setup style:One channel for everything
  ```
</CodeGroup>

**Styles:** a few channels grouped by type (the default), one channel for everything, or one channel per event.

## <Icon icon="hashtag" size={24} /> Use your own channel

Sends every event to one channel and switches them all on.

```plaintext theme={null}
/logging channel channel:#server-log
```

Leave out `channel` to switch logging off.

## <Icon icon="layer-group" size={24} /> The four logs

| Log | Records | Set it with |
| - | - | - |
| Server log | Everything below, however it happened | `/logging channel` |
| Moderation log | Numbered [cases](/moderation/cases) from Newt's commands and automod | `/logging moderation` |
| Deleted media | The actual image, video or voice memo when it's deleted | `/logging media` |
| Survey reminders | Each [survey reminder](/insights/ratings) and how many it reached | `/logging reminders` |

Leave out `channel` on any of them to switch that log off.

## <Icon icon="list" size={24} /> Events

Deleted messages, edited messages, bulk deletions, joins, leaves, bans, unbans, nickname changes, member roles, voice channels, channels added, removed or renamed, roles created, deleted or renamed, and server settings.

<AccordionGroup>
  <Accordion title="Switch one event or move it" icon="toggle-on">
    <CodeGroup>
      ```plaintext Syntax theme={null}
      /logging event <event> <on> [channel]
      ```

      ```plaintext Example theme={null}
      /logging event event:Voice channels on:True channel:#voice-log
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Pause during a cleanup" icon="pause">
    Mutes the server log and deleted media for up to 6 hours. They come back by themselves.

    ```plaintext theme={null}
    /logging pause <duration>
    /logging resume
    ```
  </Accordion>

  <Accordion title="See what's logged and where" icon="eye">
    ```plaintext theme={null}
    /logging status
    ```
  </Accordion>
</AccordionGroup>

## <Icon icon="gauge" size={24} /> On the dashboard

The **Logs** tab has everything above, plus:

* **Channels the log ignores:** nothing in a ticked channel is logged. Threads follow their channel.
* **Weekly summary** ([Premium](/help/premium)): a post every Monday around midday UTC with the week's joins, leaves, automod actions and rating.

## <Icon icon="circle-info" size={24} /> Good to know

* A ban made with `/ban` shows once, as a case. A ban made in Discord shows in the server log.
* Edits are logged only when the text changed.
* The voice log skips bots, mutes, deafens, streams and cameras.
* Permission changes on channels and roles are not logged.
* Newt needs **View Audit Log** to show who deleted a message or placed a ban. People deleting their own messages always show as unknown.
* Deleted media covers images, video and audio up to 8 MB. Newt holds each file for up to 12 hours, and not across a restart. After that the log still says who deleted what, without the file.
* Log channels are never logged themselves.

**Permission:** Manage Server
