Ok I can now use GLS with my shipping.exe. I can copy the log from the overlay log and use it. Unfortunately I was not able to pinpoint any default location for the logs so I can only use the copy logs buttons from the overlay.
Quickly here is my solution (useful if you wish logs via GLS overlay in your shipping.exe):
- Install Game Logs System (GLS): Real-Time Log Management for Shipping Builds on Mobile and Console Platforms | Community tutorial (it cost 8$ or 30$ depending on your need.
- Change your game YourGame.Build.cs to add “GLS” support (like in https://www.youtube.com/watch?v=oQdnRjIzvhI&t=57s)
- Enable shipping logs (like in https://www.youtube.com/watch?v=oQdnRjIzvhI&t=57s)
- Add include <GLSMacroses.h> in your .h
- Use GLS_LOG instead of UE_LOG.
FString Message = TEXT("Hourra!"); GLS_LOG(this, LogTemp, Warning, TEXT("GLS IS WORKING: %s"), *Message); //GLS_LOG_STRING(this, LogTemp, Verbose, TEXT("Direct log entry without formatting")); - Build your project.
- Package your project.
- In your game, go in game (on my side I needed to left my main menu). Press alt+shift+g AND HOLD 1 second (holding is important, I was not holding long enough at first).
- You should now have access to GLS log.
Here are additional steps I took but I think they were useless with this solution (I share them just in case it might had have an impact)
- In Packaging settings… I have ‘Include Debug Files in Shipping Builds’
- In my build.cs, I added
PublicDefinitions.Add("UE_BUILD_SHIPPING=1"); PublicDefinitions.Add("ALLOW_CONSOLE=1"); PublicDefinitions.Add("USE_LOGGING_IN_SHIPPING=1"); - I also added (DefaultGame.ini under [/Script/GLS.GLSSettings] that you get when installing the plugin and saving a conf as default)
`
[Core.Log]
LogInit=Verbose
LogWarning=Verbose
LogError=Verbose
LogPerformance=Verbose
`
I will close it as the solution. Even though I am really surprise it is that complicated to activate logs for shipping configuration (I know this is for performance but we should have the option to choose).
If anyone using a similar approach found GLS log location, please tell me. Paying for such a need feels ridiculous, I was starting to consider simply adding some code to write to a file instead