You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

ILogger.cs 1.2 kB

123456789101112131415161718192021222324252627282930
  1. using System;
  2. namespace Discord.Logging
  3. {
  4. public interface ILogger
  5. {
  6. LogSeverity Level { get; }
  7. void Log(LogSeverity severity, string message, Exception exception = null);
  8. void Error(string message, Exception exception = null);
  9. void Error(Exception exception);
  10. void Warning(string message, Exception exception = null);
  11. void Warning(Exception exception);
  12. void Info(string message, Exception exception = null);
  13. void Info(Exception exception);
  14. void Verbose(string message, Exception exception = null);
  15. void Verbose(Exception exception);
  16. void Debug(string message, Exception exception = null);
  17. void Debug(Exception exception);
  18. #if DOTNET5_4
  19. void Log(LogSeverity severity, FormattableString message, Exception exception = null);
  20. void Error(FormattableString message, Exception exception = null);
  21. void Warning(FormattableString message, Exception exception = null);
  22. void Info(FormattableString message, Exception exception = null);
  23. void Verbose(FormattableString message, Exception exception = null);
  24. void Debug(FormattableString message, Exception exception = null);
  25. #endif
  26. }
  27. }