fix the logLevel compare logic, if the default level > target level, it shouldn't print the output message; add the debug helper function; to keep it simple, I didn't add a sync lock while changing the logFlags. Your review will be appreciated.