FOutputDeviceRedirector

Class used for output redirection to allow logs to show

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

FOutputDevice

FOutputDeviceRedirector

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/OutputDeviceRedirector.h

Include

#include "Misc/OutputDeviceRedirector.h"

Syntax

class FOutputDeviceRedirector : public FOutputDevice

Remarks

Class used for output redirection to allow logs to show

Constructors

Name Description

Public function

FOutputDeviceRedirector

(
    FLogAllocator* Allocator
)

Initialization constructor.

Functions

Name Description

Public function

void

 

AddOutputDevice

(
    FOutputDevice* OutputDevice
)

Adds an output device to the chain of redirections.

Public function Virtual

void

 

EnableBacklog

(
    bool bEnable
)

Enables or disables the backlog.

Public function Virtual

void

 

FlushThreadedLogs()

Flushes lines buffered by secondary threads.

Public function Static

FOutputDevic...

 

Get()

Get the GLog singleton

Public function Const

bool

 

IsBacklogEnabled()

Determine if backlog is enabled

Public function

bool

 

IsRedirectingTo

(
    FOutputDevice* OutputDevice
)

Returns whether an output device is currently in the list of redirectors.

Public function Virtual

void

 

PanicFlushThreadedLogs()

Flushes lines buffered by secondary threads.

Public function

void

 

RedirectLog

(
    const FLazyName& Category,
    ELogVerbosity::Type Verbosity,
    const TCHAR* Data
)

Same as Serialize() but FName creation.

Public function

void

 

RedirectLog

(
    const FName& Category,
    ELogVerbosity::Type Verbosity,
    const TCHAR* Data
)

Public function

void

 

RemoveOutputDevice

(
    FOutputDevice* OutputDevice
)

Removes an output device from the chain of redirections.

Public function Virtual

void

 

Serialize

(
    const TCHAR* Data,
    ELogVerbosity::Type Verbosity,
    const FName& Category
)

Serializes the passed in data via all current output devices.

Public function Virtual

void

 

Serialize

(
    const TCHAR* Data,
    ELogVerbosity::Type Verbosity,
    const FName& Category,
    const double Time
)

Serializes the passed in data via all current output devices.

Public function Virtual

void

 

SerializeBacklog

(
    FOutputDevice* OutputDevice
)

Serializes the current backlog to the specified output device.

Public function Virtual

void

 

SetCurrentThreadAsMasterThread()

Sets the current thread to be the master thread that prints directly (isn't queued up)

Overridden from FOutputDevice

Name Description

Public function Virtual

void

 

Flush()

Passes on the flush request to all current output devices.

Public function Virtual

void

 

TearDown()

Closes output device and cleans up.

Typedefs

Name

Description

TLocalOutputDevicesArray

Constants

Name

Description

InlineLogEntries