public SliderEmp(TourDAL tourDAL, DestinationDAL destinationDAL, IConfiguration configuration) { this.tourDAL = tourDAL; this.destinationDAL = destinationDAL; this.logger = new LoggerConfiguration() .WriteTo.AzureBlobStorage(configuration["Data:StorageAccount"], Serilog.Events.LogEventLevel.Information, $"logs", "{yyyy}/{MM}/{dd}/log.txt").CreateLogger(); }
public DestinationController(DestinationDAL destinationDAL, BlobService blobService, Microsoft.Extensions.Configuration.IConfiguration configuration) { this.destinationDAL = destinationDAL; this.blobService = blobService; this.logger = new LoggerConfiguration() .WriteTo.AzureBlobStorage(configuration["Data:StorageAccount"], Serilog.Events.LogEventLevel.Information, $"logs", "{yyyy}/{MM}/{dd}/log.txt").CreateLogger(); }