diff --git a/src/Discord.Net/Logging/Logger.cs b/src/Discord.Net/Logging/Logger.cs index e3e917a24..59d591163 100644 --- a/src/Discord.Net/Logging/Logger.cs +++ b/src/Discord.Net/Logging/Logger.cs @@ -17,54 +17,40 @@ namespace Discord.Logging public void Log(LogSeverity severity, string message, Exception exception = null) => _manager.Log(severity, Name, message, exception); -#if DOTNET5_4 - public void Log(LogSeverity severity, FormattableString message, Exception exception = null) - => _manager.Log(severity, Name, message, exception); -#endif - public void Error(string message, Exception exception = null) => _manager.Error(Name, message, exception); -#if DOTNET5_4 - public void Error(FormattableString message, Exception exception = null) - => _manager.Error(Name, message, exception); -#endif public void Error(Exception exception) => _manager.Error(Name, exception); - public void Warning(string message, Exception exception = null) => _manager.Warning(Name, message, exception); -#if DOTNET5_4 - public void Warning(FormattableString message, Exception exception = null) - => _manager.Warning(Name, message, exception); -#endif public void Warning(Exception exception) => _manager.Warning(Name, exception); - public void Info(string message, Exception exception = null) => _manager.Info(Name, message, exception); -#if DOTNET5_4 - public void Info(FormattableString message, Exception exception = null) - => _manager.Info(Name, message, exception); -#endif public void Info(Exception exception) => _manager.Info(Name, exception); - public void Verbose(string message, Exception exception = null) => _manager.Verbose(Name, message, exception); -#if DOTNET5_4 - public void Verbose(FormattableString message, Exception exception = null) - => _manager.Verbose(Name, message, exception); -#endif public void Verbose(Exception exception) => _manager.Verbose(Name, exception); - public void Debug(string message, Exception exception = null) => _manager.Debug(Name, message, exception); + public void Debug(Exception exception) + => _manager.Debug(Name, exception); + #if DOTNET5_4 + public void Log(LogSeverity severity, FormattableString message, Exception exception = null) + => _manager.Log(severity, Name, message, exception); + public void Error(FormattableString message, Exception exception = null) + => _manager.Error(Name, message, exception); + public void Warning(FormattableString message, Exception exception = null) + => _manager.Warning(Name, message, exception); + public void Info(FormattableString message, Exception exception = null) + => _manager.Info(Name, message, exception); + public void Verbose(FormattableString message, Exception exception = null) + => _manager.Verbose(Name, message, exception); public void Debug(FormattableString message, Exception exception = null) => _manager.Debug(Name, message, exception); #endif - public void Debug(Exception exception) - => _manager.Debug(Name, exception); } }