var logger = new LoggerConfiguration()
.ReadFrom.ConfigurationSection(config.GetSection("IntacctInvoiceSyncCron:Serilog"))
.Enrich.WithProperty("LongDate", DateTime.Now.ToString("yyyyMMddHHmmssfff"))
.CreateLogger();
produces a file, but the property is missing:
log-20181121.txt
I am expecting:
log-2018112111441142123-20181121.txt
If I use a custom property in the file name, and then try to ReadFrom a configuration section, the property is disregarded in the file name.
config.json:
code:
produces a file, but the property is missing: log-20181121.txt
I am expecting: log-2018112111441142123-20181121.txt