Logs answer "what happened here?" after the fact: who deleted that message, when a role changed, who joined right before the spam started.
Setup
- Create a private channel such as
#server-logthat only staff can see. - Run
/logging setupand pick that channel. - Run
/logging configto choose which events to record.
What's worth logging
- Message edits and deletes: the most useful log for disputes.
- Joins and leaves: spot raids and returning troublemakers.
- Voice activity: who moved or disconnected whom.
- Role and channel changes: essential after a compromised-admin incident.
Moderation actions (warns, bans, timeouts) go to the separate channel you set with /mod log-channel.
Note: Keep log channels private. Deleted messages can contain things the author removed on purpose.