public static void LiveModel_TraceLogEvent(object sender, TraceLogEventArgs e) { RLLogLevel logLevel = e.LogLevel; switch (logLevel) { case RLLogLevel.LEVEL_ERROR: Console.Error.WriteLine($"LogLevel: {e.LogLevel} LogMessage: {e.Message}"); break; default: Console.WriteLine($"LogLevel: {e.LogLevel} LogMessage: {e.Message}"); break; } }
public TraceLogEventArgs(RLLogLevel logLevel, string msg) { LogLevel = logLevel; Message = msg; }