emcc logging improvements