コード例 #1
0
        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));
        }
コード例 #2
0
        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));
        }