trigger to logfile

how do you get a trigger to output text to a logfile eg “triggered”

Hi!

I think it could be like this

Also check out this lesson

Great thanks for that!!!

You can also use UE_LOG(LogChannel, LogLevel, TEXT(“Format String”), …) in C++ to log to the log file, Output Console in the editor, and Visual Studio Output Window as well.

To define a custom log category, do the following in your header:
DECLARE_LOG_CATEGORY_EXTERN(LogMYCHANNEL, Verbose, All); // Replace MYCHANNEL with whatever, and change Verbose to Log or Warning, depending on the default desired cutoff to ignore messages

And in one cpp:
DEFINE_LOG_CATEGORY(LogMYCHANNEL);

Cheers,
Michael Noland