Question about UE_LOG

So I was a bit concerned about using macros like UE_LOG and leaving them in shipping builds, should I use #if WITH_EDITOR with them? and also if I choose to have console enabled in my shipping build, do UE_LOGs print to the console in shipping builds too?

Thanks,
.

LOG does nothing on shipping packages.

However, the code where you create FStrings for logs, (if you do create strings), you should put into a
#if !UE_BUILD_SHIPPING directive so you don’t actually create any string object that actually do nothing but waste memory.

Ah got it, thanks for the tip :slight_smile: