(libretro) Reimplement logging function