No .log created in shipping build

Tested with 4.5.1 and 4.6.0 and 4.6.1
When i launch shipping build x32 then no log file is created. Is it a bug or what and where i should turn on maybe in configs or class log define to have game log such as in development build configuration? tnx

Howdy h2o,

Thank you for reporting this issue. I am going to need a bit a bit more information before i begin looking into this issue. Would you be able to share your DXdiag here so that i may be able to see your PC specs? Also, would you be able to clarify if you are using the Binary version of UE4 or the source build of UE4? Which pathing route have you been looking for the .log files?

Any additional information would be greatly appreciated.

Thanks and have a great day!

This issue is in all PCs of our team with very different specs so dxdiag will not clarify any. Build was made with binary engine version and I have not tried to do build with source version. I tried to look log file in windowsnoeditor/gamename/saved or some like that. As I said - development build have log file created.

Hey h2o,

Thank you for the additional information. I have been able to recreate this issue locally. I have entered Jira report UE-7032 into our bug database so that the issue may be resolved in a future release.

Thanks again and have a great day!

Cool tnx. I hope this will be fixed in 4.7

I will be sure to keep you posted if i see any movement on the Jira report entered.

So is it a bug or not? I am using 4.11 and I cannot generate a log in a shipping build either

I launch the game using a shortcut to the actual win64 shipping binary exe with -log and no logfile is produced. I am not expecting a console window for logging, but I am not getting a Saved/Logs folder at all so there’s literally no log tracking at all for a shipping build?

Hey Rama,

This is actually by design. You can take a look at the issue here: Unreal Engine Issues and Bug Tracker (UE-7032)

Hey, what exactly is the reason for that decision? I have a customer that experiences frequent crashes of my game and there’s no way to track down that issue as there aren’t any logfiles he could send me.

The issue description says “It can be overridden to do that, but not by default.” - where can it be overridden? I’m using 4.7.6. Thanks!

Hey anteevy,

USE_LOGGING_IN_SHIPPING needs to be defined. This can be enabled by enabling bUseLoggingInShipping in UBT.

Have a great day

This actually sucks. Why not make it a simple switch? I dont want to go through the hassle to compile the engine from source.

Hello, Sean. I have set

bUseLoggingInShipping = true;

in “public class MyGameTarget : TargetRules”, in its constructor “public MyGameTarget(TargetInfo Target) : base(Target)”. Then I packaged the game with shipping configuration, launched it and found no logs in C:\Users\MyUserName\AppData\Local\MyGame\Saved\Logs, it’s still empty. Could you give us more detailed instructions on how to achieve shipping build logging?

Hello,

It seems like users have had success using the answer provided on this thread: https://answers.unrealengine.com/questions/383407/how-to-log-in-shipping-build-win.html