Reorganize Logger.cs
This commit is contained in:
@@ -17,54 +17,40 @@ namespace Discord.Logging
|
|||||||
|
|
||||||
public void Log(LogSeverity severity, string message, Exception exception = null)
|
public void Log(LogSeverity severity, string message, Exception exception = null)
|
||||||
=> _manager.Log(severity, Name, message, exception);
|
=> _manager.Log(severity, Name, message, exception);
|
||||||
|
public void Error(string message, Exception exception = null)
|
||||||
|
=> _manager.Error(Name, message, exception);
|
||||||
|
public void Error(Exception exception)
|
||||||
|
=> _manager.Error(Name, exception);
|
||||||
|
public void Warning(string message, Exception exception = null)
|
||||||
|
=> _manager.Warning(Name, message, exception);
|
||||||
|
public void Warning(Exception exception)
|
||||||
|
=> _manager.Warning(Name, exception);
|
||||||
|
public void Info(string message, Exception exception = null)
|
||||||
|
=> _manager.Info(Name, message, exception);
|
||||||
|
public void Info(Exception exception)
|
||||||
|
=> _manager.Info(Name, exception);
|
||||||
|
public void Verbose(string message, Exception exception = null)
|
||||||
|
=> _manager.Verbose(Name, message, exception);
|
||||||
|
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
|
#if DOTNET5_4
|
||||||
public void Log(LogSeverity severity, FormattableString message, Exception exception = null)
|
public void Log(LogSeverity severity, FormattableString message, Exception exception = null)
|
||||||
=> _manager.Log(severity, Name, message, exception);
|
=> _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)
|
public void Error(FormattableString message, Exception exception = null)
|
||||||
=> _manager.Error(Name, message, exception);
|
=> _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)
|
public void Warning(FormattableString message, Exception exception = null)
|
||||||
=> _manager.Warning(Name, message, exception);
|
=> _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)
|
public void Info(FormattableString message, Exception exception = null)
|
||||||
=> _manager.Info(Name, message, exception);
|
=> _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)
|
public void Verbose(FormattableString message, Exception exception = null)
|
||||||
=> _manager.Verbose(Name, message, exception);
|
=> _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);
|
|
||||||
#if DOTNET5_4
|
|
||||||
public void Debug(FormattableString message, Exception exception = null)
|
public void Debug(FormattableString message, Exception exception = null)
|
||||||
=> _manager.Debug(Name, message, exception);
|
=> _manager.Debug(Name, message, exception);
|
||||||
#endif
|
#endif
|
||||||
public void Debug(Exception exception)
|
|
||||||
=> _manager.Debug(Name, exception);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user