Skip to main content

Plugin configuration

This page contains documentation about configuration options, to read the installation guide, click here

The configuration options of the Unreal Engine plugin. All options can be overwritten based on the environment and build target.

FieldRequiredDefaultDescription
CapsaServerURLxThe URL where the log server is hosted
CapsaEnvironmentKeyxToken used by the log server to identify the game title and environment
ProtocolhttpsProtocol to use to connect to the Capsa API server
LogTickRate1 secondTick rate for saving buffered lines to the core subsystem, GLog->AddOutputDevice not called if value <= 0
MaxTimeBetweenLogFlushes5/10 minutesMaximum time between log flushes, default 10 minutes for editor builds, 5 minutes for other builds
MaxLogLinesBetweenLogFlushes1000Maximum amount of lines between log flushes
bUseCompressiontrueUse compression when sending logs to the API server
bWriteToDiskPlaintrueSave logs to disk in plain text
bWriteToDiskCompressedfalseSave logs to disk compressed
bAutoAddCapsaComponenttrueAttach a replicated component to link client/server logs
AutoAddClassAPlayerState::StaticClass()Class to use to attach CapsaComponent to

Configurations

The configuration can be set in the DefaultEngine.ini file.

The recommended configuration, with the CapsaServerURL and CapsaEnvironmentKey replaced.

[/Script/CapsaCore.CapsaSettings]
CapsaServerURL=localhost:5000
Protocol=https
CapsaEnvironmentKey=00000000-0000-0000-0000-0000
bUseCompression=True
bWriteToDiskPlain=False
bWriteToDiskCompressed=False

Development config

Configuration that can be used for Capsa development for testing Capsa internals:

[/Script/CapsaCore.CapsaSettings]
CapsaServerURL=localhost:5000
Protocol=http
CapsaEnvironmentKey=00000000-0000-0000-0000-0000
bUseCompression=True
bWriteToDiskPlain=True
bWriteToDiskCompressed=True

Overriding environment variables

In case your setup requires overwrites of certain configuration values for different build types, you can use UAT ini-overrides.

Overrides take the form of -ini:Engine:[SettingsKey]:Variable=Value. So for example to overwrite the CapsaEnvironmentKey:

.\Path\To\RunUAT.bat BuildCookRun <BuildArgs> -ini:Engine:[/Script/CapsaCore.CapsaSettings]:CapsaEnvironmentKey=<YourEnvironmentKey>

Enabling verbose logging

If, for debugging purposes, you desire to have more verbose logging for certain categories, this can be done in the DefaultEngine.ini file, under the [Core.Log] section. For example:

[Core.Log]
; This is used for Capsa plugin development
LogCapsaCore=All
LogCapsaLog=All
; This increases verbosity of UE to generate more log lines for testing
LogNet=Verbose
LogInit=All
LogConfig=Verbose
PIE=Verbose
Cmd=All