private void WriteToDatabase(LogArguments logArguments) => logBuffer
 .Write(
     logArguments,
     (logArguments, configuration) => logArguments.ToDatabaseLogUsing(configuration),
     kv => kv.Value
     );
 private void WriteToDatabase(LogArguments logArguments) => logBuffer
 .Check(logArguments.IsLevelAllowed(configuration.Level))
 ?.Add(logArguments.ToDatabaseLogUsing(configuration))
 .Validate(configuration.BufferSize)
 ?.Write(DatabaseBulkWriter.ToDatabaseAsync, kv => kv.Value);