Generate log of Prolog code executed; generate log for visualization code.