No log file is created. What's wrong with this code? .Net Framework 4.8.
var log = new LoggerConfiguration()
.WriteTo.File(@"d:\temp\mdlogfile.txt", rollingInterval: RollingInterval.Day)
.CreateLogger();
//log.Information("Here I am, logging."); // this works
var lf = LoggerFactory.Create(builder =>
builder.AddSerilog(log).SetMinimumLevel(LogLevel.Trace));
var handler = new HttpClientHandler();
var grpcChannel = GrpcChannel.ForAddress(GrpcUrl,
new GrpcChannelOptions {
HttpHandler = new GrpcWebHandler(handler),
LoggerFactory = lf
});