Exemplo n.º 1
0
 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;
     }
 }
Exemplo n.º 2
0
 private static void OnLog(object sender, LogEventArgs args)
 {
     Console.WriteLine(args.Message);
 }