Make Singleton Construction and Logging Thread Safe