Skip to content

How to use the logger when working on Stride? #1032

Answered by tebjan
tebjan asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 1 comment

Comment options

tebjan
Mar 14, 2021
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by tebjan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant