LootLocker Unreal Server SDK 6.6.0
Server-side backend SDK for Unreal Engine
Loading...
Searching...
No Matches
ULootLockerServerConfig Class Reference

#include <LootLockerServerConfig.h>

Inheritance diagram for ULootLockerServerConfig:
Collaboration diagram for ULootLockerServerConfig:

Static Public Member Functions

static bool IsFileConfigActive ()
 Returns true when a pre-configured file config is active and governing settings.
 
static TOptional< FLootLockerServerFileConfigParseFileConfigContent (const FString &Content)
 Parses a pre-config file's raw content (plain JSON or encrypted) into an FLootLockerServerFileConfig.
 
static ELootLockerServerLogLevel GetConfiguredLogLevel ()
 
static void SetRuntimeLogLevel (ELootLockerServerLogLevel NewLevel)
 Sets the log level at runtime (not persisted).
 
static ELootLockerServerLogLevel GetRuntimeLogLevel ()
 Gets the current runtime log level (runtime override or config).
 
static void EnableFileLogging (const FString &FileName)
 Enables file logging to the specified file name.
 
static void DisableFileLogging ()
 Disables file logging.
 
static bool IsFileLoggingEnabled ()
 Returns true if file logging is enabled and a log file name is set.
 
static FString GetLogFilePath ()
 Returns the current log file path (may be empty if not enabled).
 

Data Fields

FString FileConfigActiveNotice = "Settings are governed by the pre-configured file config shipped with the plugin and cannot be changed from the editor."
 
FString LootLockerServerKey = ""
 
FString LootLockerDomainKey = ""
 
FString LegacyKeyWarning = "You are using a legacy API Key, please generate a new one here: https://console.lootlocker.com/settings/api-keys"
 
FString InvalidGameVersionWarning = ""
 
FString GameVersion = ""
 
FString LootLockerVersion = "2021-06-01"
 
ELootLockerServerLogLevel LimitLogLevelTo = ELootLockerServerLogLevel::Warning
 Logging configuration.
 
bool LogOutsideOfEditor = false
 
bool bEnableFileLogging = false
 
FString LogFileName = TEXT("LootLockerServerLog")
 
FString LongLogFilePath = ""
 

Static Public Attributes

static const FString PreConfigFileName
 Filename of the pre-config file that the SDK looks for in the plugin's Config directory.
 

Member Function Documentation

◆ DisableFileLogging()

static void ULootLockerServerConfig::DisableFileLogging ( )
static

Disables file logging.

◆ EnableFileLogging()

static void ULootLockerServerConfig::EnableFileLogging ( const FString &  FileName)
static

Enables file logging to the specified file name.

Parameters
FileNameThe log file name (relative to project log dir).

◆ GetConfiguredLogLevel()

static ELootLockerServerLogLevel ULootLockerServerConfig::GetConfiguredLogLevel ( )
inlinestatic

◆ GetLogFilePath()

static FString ULootLockerServerConfig::GetLogFilePath ( )
static

Returns the current log file path (may be empty if not enabled).

◆ GetRuntimeLogLevel()

static ELootLockerServerLogLevel ULootLockerServerConfig::GetRuntimeLogLevel ( )
static

Gets the current runtime log level (runtime override or config).

◆ IsFileConfigActive()

static bool ULootLockerServerConfig::IsFileConfigActive ( )
static

Returns true when a pre-configured file config is active and governing settings.

When true, the Project Settings panel is locked to prevent drift from the file config.

◆ IsFileLoggingEnabled()

static bool ULootLockerServerConfig::IsFileLoggingEnabled ( )
static

Returns true if file logging is enabled and a log file name is set.

◆ ParseFileConfigContent()

static TOptional< FLootLockerServerFileConfig > ULootLockerServerConfig::ParseFileConfigContent ( const FString &  Content)
static

Parses a pre-config file's raw content (plain JSON or encrypted) into an FLootLockerServerFileConfig.

Returns an empty TOptional when content is invalid or api_key is missing/empty. Exposed publicly so unit tests can call it without needing a real plugin on disk.

◆ SetRuntimeLogLevel()

static void ULootLockerServerConfig::SetRuntimeLogLevel ( ELootLockerServerLogLevel  NewLevel)
static

Sets the log level at runtime (not persisted).

Parameters
NewLevelThe new log level to use for this session.

Field Documentation

◆ bEnableFileLogging

bool ULootLockerServerConfig::bEnableFileLogging = false

◆ FileConfigActiveNotice

FString ULootLockerServerConfig::FileConfigActiveNotice = "Settings are governed by the pre-configured file config shipped with the plugin and cannot be changed from the editor."

◆ GameVersion

FString ULootLockerServerConfig::GameVersion = ""

◆ InvalidGameVersionWarning

FString ULootLockerServerConfig::InvalidGameVersionWarning = ""

◆ LegacyKeyWarning

FString ULootLockerServerConfig::LegacyKeyWarning = "You are using a legacy API Key, please generate a new one here: https://console.lootlocker.com/settings/api-keys"

◆ LimitLogLevelTo

ELootLockerServerLogLevel ULootLockerServerConfig::LimitLogLevelTo = ELootLockerServerLogLevel::Warning

Logging configuration.

◆ LogFileName

FString ULootLockerServerConfig::LogFileName = TEXT("LootLockerServerLog")

◆ LogOutsideOfEditor

bool ULootLockerServerConfig::LogOutsideOfEditor = false

◆ LongLogFilePath

FString ULootLockerServerConfig::LongLogFilePath = ""

◆ LootLockerDomainKey

FString ULootLockerServerConfig::LootLockerDomainKey = ""

◆ LootLockerServerKey

FString ULootLockerServerConfig::LootLockerServerKey = ""

◆ LootLockerVersion

FString ULootLockerServerConfig::LootLockerVersion = "2021-06-01"

◆ PreConfigFileName

const FString ULootLockerServerConfig::PreConfigFileName
static

Filename of the pre-config file that the SDK looks for in the plugin's Config directory.

Default: "LootLockerServerPreConfig.bytes"