I’ve been trying to figure out how to log messages to the NodeCanvas console window for a few days to no avail. Just like it says in the console itself, I’m trying to redirect node log messages there instead of the Unity console to reduce clutter. However, I couldn’t really find how to do so within the NodeCanvas documentation.
So I asked on the Discord, and someone was kind enough to point me towards the ParadoxNotion.Services.Logger class. “Here we go!” I thought. So I started switching my behaviors from UnityEngine.Debug.Log to using ParadoxNotion.Services.Logger.Log .
It very much surprised me when this didn’t work, either. The log messages were still being output, but still in the Unity Console and not the NodeCanvas console. I mean, if it showed up in both places that might make sense but as it stands I am clueless as to how to get it to show up in the NodeCanvas console at all.
Here’s a screenshot of the Unity Console (left) and the NodeCanvas Console (right). I’ve toggled all the show/hide toggles on the NodeCanvas console and as you can see from the left screenshot I’m definitely using the ParadoxNotion.Services.Logger class.
Indeed the way to show logs in NodeCanvas console is by using the ParadoxNotion.Services.Logger and this is what is used throughout the NodeCanvas code as well for that purpose. Please note that the logs are printed in the NodeCanvas console only if it is already open at the time the log takes place. Could that be that the reason?
It happens when entering play mode for the first time. It hasn’t adversely affected anything else from what I can tell. I don’t think this has anything to do with the logging issue, but you’re the expert.
I am using Unity 2021.3.8f1 as you can see at the top of the video.
What’s the next step in troubleshooting this logging issue? Thanks!