At the end of this post, I promised a simple module for logging that can make use a mutex and has other neat features. Well, here it is!
This simple module will write to a log file. This module has a couple of unique features:
– Optional ‘UseMutex’ switch which helps avoid resource contention so multiple threads can write to the log at the same time
– Entry Severity make log readers like CMTrace color code automatically
– Standard line entry with automatic timestamping
– Automatic log rolling at 5mb
So check it out! Let me know what you think, and feel free to branch/pull with any ideas!