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

# Logging

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

# Logging

> Log events in your server.

## Overview

Logging allows you to log events in your server. This can be useful for keeping track of what's happening in your server.

## Adding a logging event

You can add a logging event using the `log add` command.

<Info>
  Available logging events are `messages`, `members`, `roles`, `channels`,
  `invites`, `emojis` and `voice`.
</Info>

<Warning>
  Do not delete the webhook that bleh creates in your logging channels!
</Warning>

<CodeGroup>
  ```javascript Syntax theme={null} theme={null}
  ,log add (channel) (event)
  ```

  ```javascript Example theme={null} theme={null}
  ,log add #logs messages
  ```
</CodeGroup>

<br />

<Frame />

<br />

<Frame />

## Removing a logging event

You can remove a logging event using the `log remove` command.

<CodeGroup>
  ```javascript Syntax theme={null} theme={null}
  ,log remove (channel) (event)
  ```

  ```javascript Example theme={null} theme={null}
  ,log remove #logs messages
  ```
</CodeGroup>

<br />

<Frame />

<Tip>
  You can leave the event parameter empty to add or remove all logging events
  from a channel.
</Tip>

## Ignoring a member or channel

You can ignore and unignore a member or channel from being logged using the `log ignore` command.

<CodeGroup>
  ```javascript Syntax theme={null} theme={null}
  ,log ignore (member or channel)
  ```

  ```javascript Example theme={null} theme={null}
  ,log ignore @jonathan
  ,log ignore #staff-chat
  ```
</CodeGroup>

<br />

<Frame />

## Related commands

<Info>
  You can use the `log ignore list` command to view all ignored members and
  channels.
</Info>
