In my attempt to achieve this and to maximize its performance, the FastLogger class enqueues log entries into a ConcurrentQueue and starts a background task to write them to the log file. This allows multiple callers to log entries simultaneously while ensuring that the log entries are written in the order they were added.
The program waits for a while to allow the background tasks to complete before exiting.
You can adjust the delay according to your requirements.
-
Notifications
You must be signed in to change notification settings - Fork 0
Spiegelmann/FastLogger
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published