CmdLog

This is the cog guide for the cmdlog cog. You will find detailed docs about usage and commands.

[p] is considered as your prefix.

Note

To use this cog, you will need to install and load it.

See the Getting my cogs page.

Usage

Log command usage in a form searchable by user ID, server ID or command name.

The cog keeps an internal cache and everything is also logged to the bot’s main logs under red.vex.cmdlog, level INFO.

Commands

cmdlog

Note

This command is locked to the bot owner.

Syntax

[p]cmdlog

Tip

Alias: cmdlogs

Description

View command logs.

Note the cache is limited to 100 000 commands, which is approximately 50MB of RAM

cmdlog cache

Syntax

[p]cmdlog cache

Description

Show the size of the internal command cache.

cmdlog command

Syntax

[p]cmdlog command <command>

Description

Upload all the logs that are stored for a specific command in the cache.

This does not check it is a real command, so be careful. Do not enclose it in ” if there are spaces.

You can search for a group command (eg cmdlog) or a full command (eg cmdlog user). As arguments are not stored, you cannot search for them.

Examples:
  • [p]cmdlog command ping

  • [p]cmdlog command playlist

  • [p]cmdlog command playlist create

cmdlog full

Syntax

[p]cmdlog full

Description

Upload all the logs that are stored in the cache.

cmdlog server

Syntax

[p]cmdlog server <server_id>

Tip

Alias: cmdlog guild

Description

Upload all the logs that are stored for for a specific server ID in the cache.

Example:
  • [p]cmdlog server 527961662716772392

cmdlog user

Syntax

[p]cmdlog user <user_id>

Description

Upload all the logs that are stored for a specific User ID in the cache.

Example:
  • [p]cmdlog user 418078199982063626