Browse Source

Fix grammatical errors & review points

pull/2134/head
Duke 3 years ago
parent
commit
502eea898d
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      docs/guides/other_libs/samples/ConfiguringSerilog.cs
  2. +1
    -1
      docs/guides/other_libs/serilog.md

+ 1
- 1
docs/guides/other_libs/samples/ConfiguringSerilog.cs View File

@@ -24,7 +24,7 @@ public class Program

// Some alternative options would be to keep your token in an Environment Variable or a standalone file.
// var token = Environment.GetEnvironmentVariable("NameOfYourEnvironmentVariable");
// var token = File.ReadAllText("token.txt")[0];
// var token = File.ReadAllText("token.txt");
// var token = JsonConvert.DeserializeObject<AConfigurationClass>(File.ReadAllText("config.json")).Token;

await _client.LoginAsync(TokenType.Bot, token);


+ 1
- 1
docs/guides/other_libs/serilog.md View File

@@ -26,7 +26,7 @@ Serilog will be configured at the top of your async Main method, it looks like t

## Modifying your logging method

For serilog to log Discord events correctly, we have to map the discord `LogSeverity` to the serilog `LogEventLevel`. You can modify your log method to look like this.
For Serilog to log Discord events correctly, we have to map the Discord `LogSeverity` to the Serilog `LogEventLevel`. You can modify your log method to look like this.

[!code-csharp[Modifying your log method](samples/ModifyLogMethod.cs)]



Loading…
Cancel
Save