engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
FOutputDeviceRedirector类 参考

Class used for output redirection to allow logs to show 更多...

#include <OutputDeviceRedirector.h>

继承自 FOutputDevice .

Public 成员函数

void AddOutputDevice (FOutputDevice *OutputDevice)
 Adds an output device to the chain of redirections. 更多...
 
virtual void EnableBacklog (bool bEnable)
 Enables or disables the backlog. 更多...
 
void Flush () override
 Passes on the flush request to all current output devices.
 
virtual void FlushThreadedLogs ()
 Flushes lines buffered by secondary threads.
 
 FOutputDeviceRedirector (FLogAllocator *Allocator=nullptr)
 Initialization constructor.
 
bool IsBacklogEnabled () const
 Determine if backlog is enabled
 
bool IsRedirectingTo (FOutputDevice *OutputDevice)
 Returns whether an output device is currently in the list of redirectors. 更多...
 
virtual void PanicFlushThreadedLogs ()
 Flushes lines buffered by secondary threads. 更多...
 
void RedirectLog (const FLazyName &Category, ELogVerbosity::Type Verbosity, const TCHAR *Data)
 Same as Serialize() but FName creation. 更多...
 
void RemoveOutputDevice (FOutputDevice *OutputDevice)
 Removes an output device from the chain of redirections. 更多...
 
virtual void Serialize (const TCHAR *Data, ELogVerbosity::Type Verbosity, const class FName &Category) override
 Serializes the passed in data via all current output devices. 更多...
 
virtual void Serialize (const TCHAR *Data, ELogVerbosity::Type Verbosity, const class FName &Category, const double Time) override
 Serializes the passed in data via all current output devices. 更多...
 
virtual void SerializeBacklog (FOutputDevice *OutputDevice)
 Serializes the current backlog to the specified output device. 更多...
 
virtual void SetCurrentThreadAsMasterThread ()
 Sets the current thread to be the master thread that prints directly (isn't queued up)
 
void TearDown () override
 Closes output device and cleans up. 更多...
 

静态 Public 成员函数

static FOutputDeviceRedirector * Get ()
 Get the GLog singleton
 

详细描述

Class used for output redirection to allow logs to show

成员函数说明

◆ AddOutputDevice()

void FOutputDeviceRedirector::AddOutputDevice ( FOutputDevice *  OutputDevice)

Adds an output device to the chain of redirections.

参数
OutputDeviceoutput device to add

◆ EnableBacklog()

virtual void FOutputDeviceRedirector::EnableBacklog ( bool  bEnable)
virtual

Enables or disables the backlog.

参数
bEnable- Starts saving a backlog if true, disables and discards any backlog if false

◆ IsRedirectingTo()

bool FOutputDeviceRedirector::IsRedirectingTo ( FOutputDevice *  OutputDevice)

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

参数
OutputDeviceoutput device to check the list against
返回
true if messages are currently redirected to the the passed in output device, false otherwise

◆ PanicFlushThreadedLogs()

virtual void FOutputDeviceRedirector::PanicFlushThreadedLogs ( )
virtual

Flushes lines buffered by secondary threads.

Only used if a background thread crashed and we needed to push the callstack into the log.

◆ RedirectLog()

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

Same as Serialize() but FName creation.

Only needed to support

◆ RemoveOutputDevice()

void FOutputDeviceRedirector::RemoveOutputDevice ( FOutputDevice *  OutputDevice)

Removes an output device from the chain of redirections.

参数
OutputDeviceoutput device to remove

◆ Serialize() [1/2]

virtual void FOutputDeviceRedirector::Serialize ( const TCHAR *  Data,
ELogVerbosity::Type  Verbosity,
const class FName &  Category 
)
overridevirtual

Serializes the passed in data via all current output devices.

参数
DataText to log
EventEvent name used for suppression purposes

◆ Serialize() [2/2]

virtual void FOutputDeviceRedirector::Serialize ( const TCHAR *  Data,
ELogVerbosity::Type  Verbosity,
const class FName &  Category,
const double  Time 
)
overridevirtual

Serializes the passed in data via all current output devices.

参数
DataText to log
EventEvent name used for suppression purposes

◆ SerializeBacklog()

virtual void FOutputDeviceRedirector::SerializeBacklog ( FOutputDevice *  OutputDevice)
virtual

Serializes the current backlog to the specified output device.

参数
OutputDevice- Output device that will receive the current backlog

◆ TearDown()

void FOutputDeviceRedirector::TearDown ( )
override

Closes output device and cleans up.

This can't happen in the destructor as we might have to call "delete" which cannot be done for static/ global objects.


该类的文档由以下文件生成: