Guest User

Untitled

a guest
Jul 23rd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. class DebugLogger : DiscordRPC.Logging.ILogger
  2. {
  3. public LogLevel Level { get; set; }
  4.  
  5. public void Info(string message, params object[] args)
  6. {
  7. if (Level != LogLevel.Info) return;
  8. Debug.Log("[DRPC] " + string.Format(message, args));
  9. }
  10.  
  11. public void Warning(string message, params object[] args)
  12. {
  13. if (Level != LogLevel.Info && Level != LogLevel.Warning) return;
  14. Debug.LogWarning("[DRPC] " + string.Format(message, args));
  15. }
  16.  
  17. public void Error(string message, params object[] args)
  18. {
  19. if (Level != LogLevel.Info && Level != LogLevel.Warning && Level != LogLevel.Error) return;
  20. Debug.LogError("[DRPC] " + string.Format(message, args));
  21. }
  22.  
  23. }
Add Comment
Please, Sign In to add comment