10#include "Async/Async.h"
16 if (!IsInGameThread())
19 AsyncTask(ENamedThreads::GameThread, [Message, LogToTextFile, LogToROS]()
21 Log(Message, LogToTextFile, LogToROS);
37 UE_LOG(LogTemp, Warning, TEXT(
"SimulatorLog.cpp: %s"), *Message);
static void Log(const FString &Message, bool LogToTextFile=true, bool LogToROS=true)
static ULogFile * SimulatorLogFile
static void SendMessage(const FString &Message)
void Write(const FString &Text)
static ULogFile * CreateLogFile(const FString &FileNameWithoutExtension, FLogFileSettings Settings=FLogFileSettings())
FFileWriteOptions FileWriteOptions
FFileCreationOptions FileCreationOptions