Changed LoggingManager to use sprintf_s.