Esempio n. 1
0
 public LogEntry(DateTime timestamp, StackTrace stackTrace, string str, Logging.Severity severity)
 {
     this.timestamp  = timestamp;
     this.stackTrace = stackTrace;
     this.str        = str;
     this.severity   = severity;
 }
Esempio n. 2
0
 public static Vector4 SeverityToColor(Logging.Severity severity)
 {
     return(severity switch
     {
         Logging.Severity.High => new Vector4(255f / 255f, 94f / 255f, 94f / 255f, 1),
         Logging.Severity.Low => new Vector4(67f / 255f, 255f / 255f, 83f / 255f, 1),
         Logging.Severity.Medium => new Vector4(255f / 255f, 200f / 255f, 0, 1),
         _ => new Vector4(67f / 255f, 255f / 255f, 83f / 255f, 1),
     });
        public void SendLog(Logging.Severity severity, string msg)
        {
            var type = severity == Logging.Severity.Error ? OutputEvent.OutputEventType.stderr : OutputEvent.OutputEventType.stdout;

            _session.VSCode?.Send(new OutputEvent(type, msg + "\n"));
        }
Esempio n. 4
0
 protected void Log(Logging.Severity severity, string message)
 {
     ZXDebug.Logging.Write(severity, $"{LogPrefix}: {message}");
 }