Port terminology + logging

This commit is contained in:
Christopher F
2016-07-21 18:08:07 -04:00
parent e251582dc2
commit 1af94410d7
5 changed files with 55 additions and 1 deletions

11
docs/guides/logging.md Normal file
View File

@@ -0,0 +1,11 @@
# Using the Logger
Discord.Net will automatically output log messages through the @Discord.DiscordSocketClient#Log event.
## Usage
To handle Log Messages through Discord.Net's Logger, hook into the @Discord.DiscordSocketClient#Log event.
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.
[!code-csharp[](samples/logging.cs)]