Added colors for Log based on message type and introduced a protected resource to make Logger thread safe, to avoid interleaving during print