Proper way to constantly log to file
I am working on an app that will need a lot of logging. It's a completely offline system and the user wants all the logs to a file.
What is the best way to handle this so that:
There can be hundreds of log calls every few seconds so I can't make it synchronous because it freezes the UI (WPF if that matters). Any tips or suggestions would be great.
What is the best way to handle this so that:
- All the logs are written in the order that they are called
- It won't freeze the app waiting for any of the writing to complete
There can be hundreds of log calls every few seconds so I can't make it synchronous because it freezes the UI (WPF if that matters). Any tips or suggestions would be great.