Browse Source

Fix cross references in Logging

pull/826/head
Hsu Still 8 years ago
parent
commit
2f49285903
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      docs/guides/concepts/logging.md

+ 7
- 2
docs/guides/concepts/logging.md View File

@@ -14,12 +14,14 @@ section.
### Usage

To receive log events, simply hook the discord client's log method
to a Task with a single parameter of type [LogMessage]
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
lambda for handling logs, because most addons accept a reference
to a logging function to write their own messages.

[LogMessage]: xref:Discord.LogMessage

### Usage in Commands

Discord.Net's [CommandService] also provides a log event, identical
@@ -29,6 +31,9 @@ Data logged through this event is typically coupled with a
[CommandException], where information about the command's context
and error can be found and handled.

[CommandService]: Discord.Commands.CommandService
[CommandException]: Discord.Commands.CommandException

#### Samples

[!code-csharp[Logging Sample](samples/logging.cs)]


Loading…
Cancel
Save