The @Discord.LogMessage object has a custom `ToString` method attached to it, when outputting log messages, it is reccomended you use this, instead of building your own output message.
### Usage
[!code-csharp[](samples/logging.cs)]
To receive log events, simply hook the discord client's log method
to a Task with a single parameter of type [LogMessage]
It is recommended that you use an established function instead of a
lambda for handling logs, because most [addons] accept a reference
to a logging function to write their own messages.
### Usage in Commands
Discord.Net's [CommandService] also provides a log event, identical
in signature to other log events.
Data logged through this event is typically coupled with a
[CommandException], where information about the command's context
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.