Implement getLog for emscripten