public LogResponse Log(StructuredLogLevel level, string machineName, string message) { string lev = Enum.GetName(typeof(StructuredLogLevel), level); StructuredLog l = new StructuredLog { Level = lev, MachineName = machineName, Message = message }; return Log(l.ToJSON()); }
public void LogAsync(StructuredLogLevel level, string machineName, string message) { string lev = Enum.GetName(typeof(StructuredLogLevel), level); StructuredLog l = new StructuredLog { Level = lev, MachineName = machineName, Message = message }; LogAsync(l.ToJSON()); }
public LogResponse Log(StructuredLogLevel level, string machineName, string message) { string lev = Enum.GetName(typeof(StructuredLogLevel), level); StructuredLog l = new StructuredLog { Level = lev, MachineName = machineName, Message = message }; return(Log(l.ToJSON())); }