I have a use case where I need to log data to file Asynchronously which I do not see it possible with Microsoft.Extensions.Logging so need your help to figure out the best solution
- Use Seri ILogger interface, which according to this github doc does not seem to be using async await implementation but rather uses a background worker thread.
The wrapped sink (File in this case) will be invoked on a worker thread while your application's thread gets on with more important stuff.
- Write My Custom Logger which utilizes
TextWriter.Synchronized
andWriteLineAsync
OR if there is any other solution which I am not aware of