switched to RWMutex
updated mutex handling to make a shared mutex for all logger instances