-
Asked in Discord: How do I go about logging messages to the GameStudio output window from within source code files? Trying:
Didn't work. Nor did using Is there a way to log messages while in the GameStudio? I was looking into the rotation gizmo issues and the gizmo code would only run in GameStudio |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Answered by @manio143 : When logging in your game a console window should pop up with the logs (not in GameStudio). Make sure you're running in Debug mode. Are you modifying the source of Stride to log? |
Beta Was this translation helpful? Give feedback.
Answered by @manio143 :
When logging in your game a console window should pop up with the logs (not in GameStudio). Make sure you're running in Debug mode.
You're logging correctly (using GetLogger). If you want to do logs below Info level you need to set the
GlobalLogger.MinimumLevelEnabled
.One more place where logs should appear is the Output/Debug window if you're using Visual Studio.
Are you modifying the source of Stride to log?
In that case you need to register a new debug log window, let me take a look
In sources\editor\Stride.Editor\Build\GameStudioBuilderService.cs you can register a debug log page
effectCompilerServiceDebugPage = EditorDebugTools.CreateLogDebugPage(GlobalLogger…