Changed the log convenience functions to share a class mutex instead of a global one.

This allows for additional logging convenience functions to be added using the same mutex. Previously, there was no way to add additional functions because you couldn't use the same global mutex used by the other functions since you didn't have access to it.