internal static void LogIt(FlogDetail logEntry, string endpoint) { switch (endpoint) { case "Performance": Flogger.WritePerf(logEntry); break; case "Diagnostic": Flogger.WriteDiagnostic(logEntry); break; case "Error": Flogger.WriteError(logEntry); break; default: return; } }
public void Write([FromBody] FlogDetail logEntry) { Flogger.WritePerf(logEntry); }