-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #254 from AoshiW/net8
.net 8 changes, update dependencies
- Loading branch information
Showing
10 changed files
with
37 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,45 @@ | ||
#pragma warning disable SYSLIB1006 // Multiple logging methods cannot use the same event id within a class | ||
using System; | ||
using Microsoft.Extensions.Logging; | ||
using Microsoft.Extensions.Logging; | ||
|
||
namespace TwitchLib.Client.Extensions; | ||
|
||
internal static partial class LogExtensions | ||
{ | ||
[LoggerMessage(0, LogLevel.Information, "Connecting Twitch Chat Client...")] | ||
[LoggerMessage(LogLevel.Information, "Connecting Twitch Chat Client...")] | ||
public static partial void LogConnecting(this ILogger<TwitchClient> logger); | ||
|
||
[LoggerMessage(0, LogLevel.Information, "Disconnecting Twitch Chat Client...")] | ||
[LoggerMessage(LogLevel.Information, "Disconnecting Twitch Chat Client...")] | ||
public static partial void LogDisconnecting(this ILogger<TwitchClient> logger); | ||
|
||
[LoggerMessage(0, LogLevel.Information, "TwitchLib-TwitchClient initialized, assembly version: {version}")] | ||
[LoggerMessage(LogLevel.Information, "TwitchLib-TwitchClient initialized, assembly version: {version}")] | ||
public static partial void LogInitialized(this ILogger<TwitchClient> logger, Version version); | ||
|
||
[LoggerMessage(0, LogLevel.Information, "Joining channel: {channel}")] | ||
[LoggerMessage(LogLevel.Information, "Joining channel: {channel}")] | ||
public static partial void LogJoiningChannel(this ILogger<TwitchClient> logger, string channel); | ||
|
||
[LoggerMessage(0, LogLevel.Debug, "Finished channel joining queue.")] | ||
[LoggerMessage(LogLevel.Debug, "Finished channel joining queue.")] | ||
public static partial void LogChannelJoiningFinished(this ILogger<TwitchClient> logger); | ||
|
||
[LoggerMessage(0, LogLevel.Information, "Leaving channel: {channel}")] | ||
[LoggerMessage(LogLevel.Information, "Leaving channel: {channel}")] | ||
public static partial void LogLeavingChannel(this ILogger<TwitchClient> logger, string channel); | ||
|
||
[LoggerMessage(0, LogLevel.Error, "Message length has exceeded the maximum character count. (500)")] | ||
[LoggerMessage(LogLevel.Error, "Message length has exceeded the maximum character count. (500)")] | ||
public static partial void LogMessageTooLong(this ILogger<TwitchClient> logger); | ||
|
||
[LoggerMessage(0, LogLevel.Trace, "Received: {line}")] | ||
[LoggerMessage(LogLevel.Trace, "Received: {line}")] | ||
public static partial void LogReceived(this ILogger<TwitchClient> logger, string line); | ||
|
||
[LoggerMessage(0, LogLevel.Information, "Reconnecting to Twitch")] | ||
[LoggerMessage(LogLevel.Information, "Reconnecting to Twitch")] | ||
public static partial void LogReconnecting(this ILogger<TwitchClient> logger); | ||
|
||
[LoggerMessage(0, LogLevel.Debug, "Should be connected!")] | ||
[LoggerMessage(LogLevel.Debug, "Should be connected!")] | ||
public static partial void LogShouldBeConnected(this ILogger<TwitchClient> logger); | ||
|
||
[LoggerMessage(0, LogLevel.Warning, "Unaccounted for: {ircString} (please create a TwitchLib GitHub issue :P)")] | ||
[LoggerMessage(LogLevel.Warning, "Unaccounted for: {ircString} (please create a TwitchLib GitHub issue :P)")] | ||
public static partial void LogUnaccountedFor(this ILogger<TwitchClient> logger, string ircString); | ||
|
||
[LoggerMessage(0, LogLevel.Debug, "Writing: {message}")] | ||
[LoggerMessage(LogLevel.Debug, "Writing: {message}")] | ||
public static partial void LogWriting(this ILogger<TwitchClient> logger, string message); | ||
|
||
[LoggerMessage(0, LogLevel.Error, "{message}")] | ||
[LoggerMessage(LogLevel.Error, "{message}")] | ||
public static partial void LogException(this ILogger logger, string message, Exception ex); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters