Agrarsense
|
#include <SimulatorLog.h>
Static Public Member Functions | |
static void | Log (const FString &Message, bool LogToTextFile=true, bool LogToROS=true) |
Static Private Member Functions | |
static void | Create () |
static void | Shutdown () |
Static Private Attributes | |
static ULogFile * | SimulatorLogFile = nullptr |
Friends | |
class | AAgrarsenseGameModeBase |
Static class for logging Simulator messages to console, text file and ROS.
Definition at line 19 of file SimulatorLog.h.
|
staticprivate |
Create the log file.
Definition at line 41 of file SimulatorLog.cpp.
References Append, ULogFile::CreateLogFile(), FLogFileSettings::FileCreationOptions, FLogFileSettings::FileWriteOptions, FLogFileSettings::KeepFileOpen, Queue, FLogFileSettings::QueueLength, and SimulatorLogFile.
Referenced by AAgrarsenseGameModeBase::SpawnNeededActorsInitGame().
|
static |
Logs a message.
Message | The message to log. |
LogToTextFile | Whether to log to a text file. |
LogToROS | Whether to log to ROS. |
Definition at line 14 of file SimulatorLog.cpp.
References Log(), UInfoTopic::SendMessage(), SimulatorLogFile, and ULogFile::Write().
Referenced by ACamera::AddPostProcessingMaterial(), ASensor::BeginPlay(), AOverlapSensor::BuildAndSendMessage(), UAgrarsenseSettings::ChangeMapByName(), ALidar::ChangeParameters(), ASensor::CreateROSTopic(), UAssetLibrary::DestroyAllWalkers(), ADeletionVolume::DestroyOverlappingActors(), AAgrarsenseGameModeBase::EndPlay(), ASensor::EndPlay(), USimulatorJsonExporter::ExportInstancedActorsToJSON(), USimulatorJsonExporter::ExportSensorToJSON(), USimulatorJsonExporter::ExportVehicleAndSensorsToJSON(), USimulatorJsonExporter::ExportWalkerToJSON(), USimulatorJsonExporter::ExportWeatherToJSON(), UROSCommands::HandlePrintAvailableCommands(), UROSCommands::HandlePrintMaps(), UROSCommands::HandleTryDestroyObjectByID(), Log(), ACollisionSensor::OnCollisionEvent(), USimulatorJsonParser::ParseAndOperateJSONFile(), USimulatorJsonParser::ParseAndSetSemanticColors(), UROSCommands::ParseIncomingMessage(), UAgrarsenseSettings::PauseSimulation(), UROSCommands::PrintActorInformation(), IActorInformation::PrintAllIds(), UAgrarsenseGameInstance::ROSBridgeConnected(), UAgrarsenseGameInstance::ROSBridgeDisconnected(), ACamera::SaveImageToDisk(), UAgrarsenseSettings::SetGlobalTimeDilation(), AOverlapSensor::SetOverlapBounds(), AOverlapSensor::SetOverlapRelativePosition(), UAgrarsenseSettings::SetQualityLevel(), UAgrarsenseSettings::SetUltraWithRaytracingLevel(), UAgrarsenseSettings::SetWorldRendering(), USimulatorLogFunctionLibrary::SimulatorLog(), AAgrarsenseGameModeBase::SpawnNeededActorsInitGame(), USimulatorJsonParser::SpawnSensorWorld(), USimulatorJsonParser::SpawnWalker(), UAssetLibrary::SpawnWalker(), and UAgrarsenseSettings::UnPauseSimulation().
|
staticprivate |
Destroy the log file.
Definition at line 55 of file SimulatorLog.cpp.
References ULogFile::Destroy(), and SimulatorLogFile.
Referenced by AAgrarsenseGameModeBase::EndPlay().
|
friend |
Definition at line 34 of file SimulatorLog.h.
|
staticprivate |
Definition at line 47 of file SimulatorLog.h.
Referenced by Create(), Log(), and Shutdown().