Use Serilog with Azure Log Stream
The file sink has been reported to work correctly with the following configuration:
.WriteTo.File( @"D:\home\LogFiles\Application\myapp.txt", fileSizeLimitBytes: 1_000_000, rollOnFileSizeLimit: true, shared: true, flushToDiskInterval: TimeSpan.FromSeconds(1))
There are a few subtleties to watch - shared:
and flushToDiskInterval:
especially.