Daily Unreal Column #37 - Message Log
Whenever we want to log some information we most likely use UE_LOG macro. However, it might not be the most effective way of letting your editor users that something important has happened.
Message log is a separate window that allows to show messages of different verbosity. What's great about it, is that it allows to link directly to the asset in question as well as make it a bit easier to digest by non tech people.
Here is a code that outputs an error message a link to the instance of this asset and a text, all as part of Asset Check
category.
FMessageLog MessageLog("AssetCheck");
MessageLog.Error()
->AddToken(FUObjectToken::Create(this))
->AddToken(FTextToken::Create(FText::FromString("failed validation.")));
And this is how it looks like in the editor when this code is executed: