public static LoggerConfiguration BigQuery(this LoggerSinkConfiguration sinkConfiguration, IConfigurationSection configuration, LogEventLevel logLevel = LogEventLevel.Warning) { var sinkOptions = new BigQuerySinkOptions(); configuration.Bind(sinkOptions); return(sinkConfiguration.BigQuery(sinkOptions, logLevel)); }
public static LoggerConfiguration BigQuery(this LoggerSinkConfiguration sinkConfiguration, string projectId, string datasetName = "logs", LogEventLevel logLevel = LogEventLevel.Warning) { var sinkOptions = new BigQuerySinkOptions() { ProjectId = projectId, DatasetName = datasetName }; return(sinkConfiguration.BigQuery(sinkOptions, logLevel)); }