Exemple #1
0
 public static void Error(string Message, LogID logID)
 {
     try
     {
         DiscordAPI.GetClient().Logger.Log(LogLevel.Error, eventIDs[logID], Message);
     }
     catch (NullReferenceException)
     {
         Console.WriteLine("[ERROR] " + Message);
     }
 }
Exemple #2
0
 public static void Fatal(string Message, LogID logID)
 {
     try
     {
         DiscordAPI.GetClient().Logger.Log(LogLevel.Critical, eventIDs[logID], Message);
     }
     catch (NullReferenceException)
     {
         Console.WriteLine("[CRITICAL] " + Message);
     }
 }
Exemple #3
0
 public static void Warn(string Message, LogID logID)
 {
     try
     {
         DiscordAPI.GetClient().Logger.Log(LogLevel.Warning, eventIDs[logID], Message);
     }
     catch (NullReferenceException)
     {
         Console.WriteLine("[WARNING] " + Message);
     }
 }