Skip to content

Commit

Permalink
Update OAuth2WebConfiguration.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby authored May 2, 2024
1 parent a243a91 commit aed929b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions DisCatSharp.Extensions.OAuth2Web/OAuth2WebConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,24 @@ public sealed class OAuth2WebConfiguration
/// </summary>
public string? HtmlOutputException { internal get; init; } = null;

/// <summary>
/// <para>Sets the minimum logging level for messages.</para>
/// <para>Defaults to <see cref="LogLevel.Information"/>.</para>
/// </summary>
public LogLevel MinimumLogLevel { internal get; set; } = LogLevel.Information;

Check failure on line 123 in DisCatSharp.Extensions.OAuth2Web/OAuth2WebConfiguration.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

The type or namespace name 'LogLevel' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 123 in DisCatSharp.Extensions.OAuth2Web/OAuth2WebConfiguration.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

The type or namespace name 'LogLevel' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 123 in DisCatSharp.Extensions.OAuth2Web/OAuth2WebConfiguration.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

The type or namespace name 'LogLevel' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 123 in DisCatSharp.Extensions.OAuth2Web/OAuth2WebConfiguration.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

The type or namespace name 'LogLevel' could not be found (are you missing a using directive or an assembly reference?)

/// <summary>
/// <para>Allows you to overwrite the time format used by the internal debug logger.</para>
/// <para>Only applicable when <see cref="LoggerFactory"/> is set left at default value. Defaults to ISO 8601-like format.</para>
/// </summary>
public string LogTimestampFormat { internal get; set; } = "yyyy-MM-dd HH:mm:ss zzz";

/// <summary>
/// <para>Sets the proxy to use for HTTP connections to Discord.</para>
/// <para>Defaults to <see langword="null"/>.</para>
/// </summary>
public IWebProxy? Proxy { internal get; set; } = null;

Check failure on line 135 in DisCatSharp.Extensions.OAuth2Web/OAuth2WebConfiguration.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

The type or namespace name 'IWebProxy' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 135 in DisCatSharp.Extensions.OAuth2Web/OAuth2WebConfiguration.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

The type or namespace name 'IWebProxy' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 135 in DisCatSharp.Extensions.OAuth2Web/OAuth2WebConfiguration.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

The type or namespace name 'IWebProxy' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 135 in DisCatSharp.Extensions.OAuth2Web/OAuth2WebConfiguration.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

The type or namespace name 'IWebProxy' could not be found (are you missing a using directive or an assembly reference?)

/// <summary>
/// Creates a new instance of <see cref="OAuth2WebConfiguration"/>.
/// </summary>
Expand Down Expand Up @@ -151,5 +169,8 @@ public OAuth2WebConfiguration(OAuth2WebConfiguration other)
this.HtmlOutputInvalidState = other.HtmlOutputInvalidState;
this.HtmlOutputSecurityException = other.HtmlOutputSecurityException;
this.HtmlOutputException = other.HtmlOutputException;
this.Proxy = other.Proxy;
this.LogTimestampFormat = other.LogTimestampFormat;
this.MinimumLogLevel = other.MinimumLogLevel;
}
}

0 comments on commit aed929b

Please sign in to comment.