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

# Log Channel

> Set up a channel where Nocturne posts a detailed log every time a staff action is executed.

Every staff action Nocturne handles can be logged automatically to a channel of your choice. The log includes who performed the action, who was targeted, what roles were changed, and the reason provided.

***

<h2 id="log-channel-set">
  Setting the Log Channel
</h2>

To enable audit logging, you simply need to point Nocturne to the text channel where you want the logs to be sent. You can also use this command to change the logging channel itself and Nocturne will handle the deletion of the previous webhook.

<Badge color="red" size="sm">User: Manage Server</Badge> <Badge color="orange" size="sm">Bot: Manage Webhooks</Badge>

<Tabs>
  <Tab title="Command" icon="code-simple">
    ```text Command theme={null}
    /config log-channel set <channel>
    ```

    ```text Example theme={null}
    /config log-channel set channel:#staff-logs
    ```
  </Tab>

  <Tab title="Visual Output" icon="image">
    <img src="https://mintcdn.com/nocturneidle/HGP1XeHwOgeZO9_d/images/Config-Log-Set.png?fit=max&auto=format&n=HGP1XeHwOgeZO9_d&q=85&s=4ee64c0ea82da77cfcbb441d0b631613" alt="Config Log Channel Set" title="Config Log Channel Set" className="mx-auto" style={{ width:"80%" }} width="536" height="203" data-path="images/Config-Log-Set.png" />
  </Tab>
</Tabs>

<Note>
  Nocturne requires the **Manage Webhooks** permission for this. The webhook it creates will solely be used for logging and for no other reason.
</Note>

***

<h2 id="log-channel-remove">
  Removing the Log Channel
</h2>

If you want to stop Nocturne from logging staff actions, or if you are restructuring your server and need to delete the current log channel, you can easily remove the configuration.

<Badge color="red" size="sm">User: Manage Server</Badge>

<Tabs>
  <Tab title="Command" icon="code-simple">
    ```text Command theme={null}
    /config log-channel remove
    ```
  </Tab>

  <Tab title="Visual Output" icon="image">
    <img src="https://mintcdn.com/nocturneidle/HGP1XeHwOgeZO9_d/images/Config-Log-Remove.png?fit=max&auto=format&n=HGP1XeHwOgeZO9_d&q=85&s=d4e5d0f67194ae1f0e257b19a9ac94a2" alt="Config Log Channel Remove" title="Config Log Channel Remove" className="mx-auto" style={{ width:"80%" }} width="482" height="206" data-path="images/Config-Log-Remove.png" />
  </Tab>
</Tabs>

<Warning>
  Running this command only tells Nocturne to stop sending new logs. It will delete the webhook, but **not** delete any of the previous log messages already sent in that channel.
</Warning>
