Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Setting BuildSettings flags in 4.17

I need to set bUseLoggingInShipping = true so that I can get a log file to diagnose a problem in my shipping build.

In 4.15 the advice to enable log files was to add the following line to the project's Build.cs:

UEBuildConfiguration.bUseLoggingInShipping = true;

However after 4.16 the TargetRules object that's passed in is now ReadOnlyTargetRules so these flags can't be set here (Unless there's a workaround?). See This Answer for further details

So in addition to this I've found two other methods that I can't get to work. The first is to modify the BuildConfiguration.xml which apparently worked in 4.16 but now it doesn't in 4.17. Visual Studio immediately spits out a compiler error.

The Second method seems more likely to be the supported method, editing Engine.ini files to include the following lines:



I've tried adding these lines to






However none of these attempts produced a log file at %AppData%/Local/MyGame/Saved/ It's successfully writing SaveGames, CrashReports, and ini files to that directory though.

I'm at the end of my googling abilities and need some ideas on what to try next. Also since this has changed twice in the last two updates I imagine these things are going to continue to change in the next few versions, so if anyone could shed any light on where the devs are headed with this it would be helpful.

Product Version: Not Selected
more ▼

asked Sep 12 '17 at 12:03 AM in C++ Programming

avatar image

140 6 7 12

avatar image Spiris Nov 16 '17 at 07:50 PM

ReadOnlyTargetRules is passed into your module in the module's build.cs, but you should be able to override the function SetupGlobalEnvironment in your target file like so.

 public override void SetupGlobalEnvironment(TargetInfo Target, ref LinkEnvironmentConfiguration OutLinkEnvironmentConfiguration, ref CPPEnvironmentConfiguration OutCPPEnvironmentConfiguration )
 UEBuildConfiguration.bUseLoggingInShipping = true;
 // OR
avatar image Spiris Nov 17 '17 at 01:51 AM

I just played with this a bit and it looks like you can get away with just setting

  UEBuildConfiguration.bUseLoggingInShipping = true;

the emitted file will be found in AppData\Local\(YourGameTitle)\Saved\Logs

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question