private static void OnLog(object sender, LogEventArgs e)
 {
     switch (e.LogType) {
         case LogType.Error:
             WriteLine("&4[Error]&f " + e.Message);
             break;
         case LogType.Debug:
             WriteLine("&6[DEBUG]&f " + e.Message);
             break;
         case LogType.Critical:
             WriteLine("&3[Critical]&f " + e.Message + "!!!");
             break;
         case LogType.Warning:
             WriteLine("&e[Warning]&f " + e.Message);
             break;
         default:
             WriteLine(DateTime.Now.ToString("(hh:mm:ss) ") + e.Message);
             break;
     }
 }
Example #2
0
 private static void OnLog(object sender, LogEventArgs args)
 {
     Console.WriteLine(args.Message);
 }