8#include "CoreMinimal.h"
9#include "UObject/Object.h"
13#include "LogFile.generated.h"
35 UPROPERTY(EditAnywhere, BlueprintReadWrite)
38 UPROPERTY(EditAnywhere, BlueprintReadWrite)
39 bool Timestamp = true;
41 UPROPERTY(EditAnywhere, BlueprintReadWrite)
42 bool KeepFileOpen = false;
44 UPROPERTY(EditAnywhere, BlueprintReadWrite)
47 UPROPERTY(EditAnywhere, BlueprintReadWrite)
48 int32 QueueLength = 10;
50 UPROPERTY(EditAnywhere, BlueprintReadWrite)
51 bool OverrideFilePath = false;
53 UPROPERTY(EditAnywhere, BlueprintReadWrite)
85 UFUNCTION(BlueprintCallable, Category =
"Logging")
86 void Create(
const FString& FileNameWithoutExtension,
FLogFileSettings Settings);
92 UFUNCTION(BlueprintCallable, Category =
"Logging")
93 void Write(
const FString& Text);
98 UFUNCTION(BlueprintCallable, Category =
"Logging")
104 UFUNCTION(BlueprintCallable, Category =
"Logging")
110 UFUNCTION(BlueprintCallable, Category =
"Logging")
116 UFUNCTION(BlueprintCallable, Category =
"Logging")
122 UFUNCTION(BlueprintCallable, BlueprintPure, Category =
"Logging")
123 FString GetLogFilePath()
133 void WriteQueuedMessages();
140 void WriteToFile(
const FString& Text,
bool UseTimestamp);
143 TArray<FString> MessageQueue;
149 std::ofstream LogFileStream;