I had a similar question here if it helps you - https://discourse.nodered.org/t/create-and-display-log-in-dashboard/72384