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

# Event Logs (logs)

Use `/logs` or `m!logs` to record selected Discord server events and send reports to a configured output channel.

## Supported events

* `message` (🗑️ **Deleted messages**): If the original is cached, report its author and content; otherwise only available identifiers can be shown.
* `edit` (✏️ **Message edits**): Record the before/after content and message link.
* `reaction` (↩️ **Reaction removals**): Record the member, emoji, and original message link.

## Commands

* `/logs` or `m!logs`: Display the current configuration for all three event types.
* `status`: Inspect monitoring and output channels for an event type.
* `set`: Configure the monitored channel and output channel.
* `off`: Disable monitoring of one selected channel, or all channels of the type if none is given.

Examples: `m!logs reaction set #chat #logs` and `m!logs edit status`.

## Permissions and limitations

Managing logs requires **Manage Messages** or explicit permission through Miulien `permissions`. The monitored and output channel must be different. Miulien needs access to the monitored channel and permission to send messages to the output channel.

The database stores **configuration only**, not historical event logs. Deleted uncached messages cannot have their original content recovered, and available details depend on Discord's event data and channel permissions.
