Unable to compile shipping build with logging in 4.17.2

If I add this below line to MyGameName.Target.cs and build as shipping then…

UEBuildConfiguration.bUseLoggingInShipping = true;

this error happens for a lot of files…

ExampleFile.gen.cpp.obj : error LNK2001: unresolved external symbol "struct FLogCategoryLogClass LogClass" (?LogClass@@3UFLogCategoryLogClass@@A)

So is there a way to enable logging for shipping build?

Forum link here: [SOLVED] Unable to compile shipping build with logging in 4.17.2 - C++ - Unreal Engine Forums

Issue resolved in 4.18 P2 :slight_smile:

Fixed! UE-49632 Console logging broken in shipping builds