Fixed log so it will compile under Visual Studio