Logging
ballsdex.core.utils.logging
log_action
log_action(message: str, bot: BallsDexBot, console_log: bool = False)
Log an action to be sent in the channel configured by log-channel
in config.yml
.
If no channel was configured, this does nothing.
Parameters:
-
message
(str
) –The message to log.
-
bot
(BallsDexBot
) –The bot class, needed to send the message.
-
console_log
(bool
, default:False
) –Whether to also log the message in the console. Defaults to
False
.