private void WriteToConsole(LogArguments logArguments) => logBuffer
 .Check(logArguments.IsLevelAllowed(configuration.Level))
 ?.Add(logArguments.ToStringLogUsing(configuration))
 .Validate(configuration.BufferSize)
 ?.Write(ConsoleBulkWriter.ToConsole, kv => kv.Value);
Exemple #2
0
 private void WriteToFile(LogArguments logArguments) => logBuffer
 .Check(logArguments.IsLevelAllowed(configuration.Level))
 ?.Add(logArguments.ToStringLogUsing(configuration))
 .Validate(configuration.BufferSize)
 ?.Write(FileBulkWriter.ToFileAsync, kv => $"{kv.Value}{Environment.NewLine}");