ServerFlushLogInterval

ServerFlushLogInterval

#Overview

name: ServerFlushLogInterval

The value of this variable can be defined or overridden in .ini config files. 1 .ini config file referencing this setting variable.

It is referenced in 2 C++ source files.

#Summary

#Setting Variables

#References In INI files

Location: <Workspace>/Engine/Config/BaseEngine.ini:1367, section: [/Script/Engine.GameEngine]

#References in C++ code

#Callsites

This variable is referenced in the following C++ source code:

#Loc: <Workspace>/Engine/Source/Runtime/Engine/Classes/Engine/GameEngine.h:32

Scope (from outer to inner):

file
class        class UGameEngine : public UEngine

Source code excerpt:

	/** Maximium time (in seconds) between the flushes of the logs on the server (best effort). If 0, this will happen every tick. */
	UPROPERTY(config)
	float ServerFlushLogInterval;

	UPROPERTY(transient)
	TObjectPtr<UGameInstance> GameInstance;

public:

#Loc: <Workspace>/Engine/Source/Runtime/Engine/Private/GameEngine.cpp:1672

Scope (from outer to inner):

file
function     void UGameEngine::Tick

Source code excerpt:

	{
		double CurrentTime = FPlatformTime::Seconds();
		if (CurrentTime - LastTimeLogsFlushed > static_cast<double>(ServerFlushLogInterval))
		{
			CSV_SCOPED_TIMING_STAT_EXCLUSIVE(LogFlush);
			GLog->Flush();

			LastTimeLogsFlushed = FPlatformTime::Seconds();
		}