lxGameMode can now trap UE_LOG Error into the debugger
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "BlueprintErrors.h"
|
||||
#include "Containers/Array.h"
|
||||
#include "CoreMinimal.h"
|
||||
#include "EdGraph/EdGraphNode.h"
|
||||
@@ -12,6 +13,7 @@
|
||||
#include "UObject/NameTypes.h"
|
||||
#include "UObject/ObjectMacros.h"
|
||||
#include "UObject/UObjectGlobals.h"
|
||||
#include "BlueprintErrors.h"
|
||||
|
||||
#include "FormatError.generated.h"
|
||||
|
||||
@@ -23,121 +25,6 @@ class UObject;
|
||||
|
||||
|
||||
|
||||
//
|
||||
// The following UENUM contains all the ELogVerbosity levels, in a form
|
||||
// that the blueprint editor can manipulate.
|
||||
//
|
||||
// We deliberately moved Fatal to the end of the list, because the editor
|
||||
// will display these values in the order shown here, and we want Error to
|
||||
// be the value that is 'promoted', and we want Fatal to be buried as a
|
||||
// rarely-used option.
|
||||
//
|
||||
|
||||
/** Log Verbosity: The importance of the message, which affects where the message goes and how it is filtered. */
|
||||
UENUM(BlueprintType)
|
||||
enum class ElxLogVerbosity : uint8 {
|
||||
|
||||
/* Prints an error to the console and log file. The editor collects and reports errors. */
|
||||
Error,
|
||||
|
||||
/* Prints a warning to the console and log file. The editor collects and report warnings. */
|
||||
Warning,
|
||||
|
||||
/* Prints a message to the console and log file. */
|
||||
Display,
|
||||
|
||||
/* Prints a message to the log file, however, it does not print to the console. */
|
||||
Log,
|
||||
|
||||
/* Prints a message to a log file only if Verbose logging is enabled for the given category. This is usually used for detailed logging. */
|
||||
Verbose,
|
||||
|
||||
/* Prints a message to a log file. If VeryVerbose logging is enabled, then this is used for detailed logging that would otherwise spam output. */
|
||||
VeryVerbose,
|
||||
|
||||
/* Danger! Prints a fatal error to the console and log file, then crashes (this crashes the editor too). */
|
||||
Fatal,
|
||||
};
|
||||
|
||||
/** Display Duration: How long to display a message in the game's viewport */
|
||||
UENUM(BlueprintType)
|
||||
enum class ElxDisplayDuration : uint8 {
|
||||
|
||||
/* Do not display the message in the viewport */
|
||||
No_Show = 0,
|
||||
|
||||
/* Display the message in the viewport for 1 seconds */
|
||||
Show_1_Seconds = 1,
|
||||
|
||||
/* Display the message in the viewport for 2 seconds */
|
||||
Show_2_Seconds = 2,
|
||||
|
||||
/* Display the message in the viewport for 3 seconds */
|
||||
Show_3_Seconds = 3,
|
||||
|
||||
/* Display the message in the viewport for 4 seconds */
|
||||
Show_4_Seconds = 4,
|
||||
|
||||
/* Display the message in the viewport for 5 seconds */
|
||||
Show_5_Seconds = 5,
|
||||
|
||||
/* Display the message in the viewport for 10 seconds */
|
||||
Show_10_Seconds = 10,
|
||||
|
||||
/* Display the message in the viewport for 20 seconds */
|
||||
Show_20_Seconds = 20,
|
||||
|
||||
/* Display the message in the viewport for 30 seconds */
|
||||
Show_30_Seconds = 30,
|
||||
|
||||
/* Display the message in the viewport for 40 seconds */
|
||||
Show_40_Seconds = 40,
|
||||
|
||||
/* Display the message in the viewport for 50 seconds */
|
||||
Show_50_Seconds = 50,
|
||||
|
||||
/* Display the message in the viewport for 60 seconds */
|
||||
Show_60_Seconds = 60,
|
||||
|
||||
/* Display the message in the viewport for 70 seconds */
|
||||
Show_70_Seconds = 70,
|
||||
|
||||
/* Display the message in the viewport for 80 seconds */
|
||||
Show_80_Seconds = 80,
|
||||
|
||||
/* Display the message in the viewport for 90 seconds */
|
||||
Show_90_Seconds = 90,
|
||||
|
||||
/* Display the message in the viewport for 1 minutes */
|
||||
Show_1_Minutes = 101,
|
||||
|
||||
/* Display the message in the viewport for 2 minutes */
|
||||
Show_2_Minutes = 102,
|
||||
|
||||
/* Display the message in the viewport for 3 minutes */
|
||||
Show_3_Minutes = 103,
|
||||
|
||||
/* Display the message in the viewport for 4 minutes */
|
||||
Show_4_Minutes = 104,
|
||||
|
||||
/* Display the message in the viewport for 5 minutes */
|
||||
Show_5_Minutes = 105,
|
||||
};
|
||||
|
||||
//
|
||||
// Library functions used by Format Error Message.
|
||||
//
|
||||
UCLASS(MinimalAPI)
|
||||
class UlxFormatErrorLibrary : public UBlueprintFunctionLibrary
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
public:
|
||||
UFUNCTION(BlueprintCallable, meta=(WorldContext = "Context", BlueprintInternalUseOnly = "true"))
|
||||
static void FormatErrorInternal(UObject *Context, ElxLogVerbosity Verbosity, ElxDisplayDuration DisplayDuration, const FString &InPattern, TArray<FFormatArgumentData> InArgs);
|
||||
};
|
||||
|
||||
|
||||
//
|
||||
// The Format Error Message K2Node.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user