Closed krzysztofFC closed 8 months ago
Hi @krzysztofFC. Thanks for reaching out about this API. I'll try to find someone on the product team who can explain the observed behavior? Have you tried asking about this on the Q&A forums? The folks there can sometimes provide answers more quickly: Microsoft Q&A
If you do create a thread over at Microsoft Q&A, we would appreciate if you could share that link here so we can track the progress and incorporate any technical details into our documentation.
I got some info from the product team, @krzysztofFC. They said:
Events go to disk when a buffer is filled or when the user calls FileLoggingSession.CloseAndSaveToFileAsync.
I've updated the docs with this clarification. The changes should appear on the live site soon. Thanks for helping to improve the docs!
Issue Observed:
Questions:
Is the behavior observed (logs saved only upon application exit) an inconsistency with the documentation, or is it the expected behavior and the documentation might be misleading or misinterpreted?
Is there a way to send the log to the file once it is logged?
Here is a minimal working demo code to illustrate the problem:
Kind regards, Krzysztof
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.