예제 #1
0
        public async Task <ActionResult> AddKubernetesJsonLogEntry([FromBody] LogEntry entryToAdd)
        {
            await _centralLog.AddLogEntry(entryToAdd);

            return(Ok());
        }
예제 #2
0
 private void HandleWrittenLogs(NewOutput newOutput, CancellationToken token)
 {
     // Wait for new entries written to any log file and pass it to the central log service
     //Trace.TraceInformation($"CentralLogService add log entry: [{newOutput.FileName}] - [{newOutput.Lines}]");
     _centralLogService.AddLogEntry(new LogEntry(newOutput.FileName, newOutput.Lines));
 }