Overview
Logging is a free, built-in feature for your Discord server, available without the need for plugins. By default, logging is disabled to conserve resources. To enable it, navigate to Servers > [Your servers] settings and check the logging option. Here's how logs can be useful:
- Error logging: Logs like
error
and warning
help identify issues with the Discord bot, such as missing permissions or incorrect role hierarchy. - Info logging: Informational logs (e.g.,
info
) provide updates on key actions that require specific roles, such as a ban
event.
Logging improves efficiency and gives you valuable insights into server activity and potential issues.
Cleanup
Logs are stored temporarily on Sentinel's webserver, with a maximum of 100 logs per server. If this limit is reached, further API requests to the Sentinel website will be denied. However, Sentinel includes a built-in cleanup feature to manage this:
- Automatic cleanup Recommended Once you hit the 100-log limit, Sentinel will automatically delete the oldest 50 logs. This feature is enabled by default but can be turned off if needed.
- Manual cleanup: You can manually remove logs using the cleanup button, specifying the number of logs to delete. Individual logs can also be removed by clicking the delete icon next to each record.
Exporting logs
Want to keep your logs for future reference? Sentinel offers two options for exporting logs:
- Via the web dashboard Recommended Navigate to the logs page (general or specific to your server) and click the export button. This generates an Excel file with detailed log information.
- Via Discord: Use the
/log
command. Optionally, specify a category to export all logs in that category as a .txt file.