![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
Namespaces | |
| namespace | Private |
| namespace | Protocol0 |
| namespace | Protocol1 |
| namespace | Protocol2 |
| namespace | Protocol3 |
| namespace | Protocol4 |
| namespace | Protocol5 |
| namespace | Protocol6 |
| namespace | Protocol7 |
Classes | |
| class | FChannel |
| struct | FChannelInfo |
| struct | FInitializeDesc |
| struct | FMessageEvent |
| struct | FSendFlags |
| struct | FStatistics |
| struct | TEventRef |
Typedefs | |
| typedef TEventRef< uint8 > | FEventRef8 |
| typedef TEventRef< uint16 > | FEventRef16 |
| typedef TEventRef< uint32 > | FEventRef32 |
| typedef TEventRef< uint64 > | FEventRef64 |
| using | OnMessageFunc = void(const FMessageEvent &) |
| using | OnConnectFunc = void(void) |
| using | OnUpdateFunc = void(void) |
| using | OnScopeBeginFunc = void(const ANSICHAR *) |
| using | OnScopeEndFunc = void(void) |
| typedef uint32 | FChannelId |
| typedef void * | AllocFunc(SIZE_T Size, uint32 Alignment) |
| typedef void | FreeFunc(void *Ptr, SIZE_T Size) |
| typedef void | ChannelIterFunc(const ANSICHAR *Name, bool State, void *User) |
| typedef bool | ChannelIterCallback(const FChannelInfo &Info, void *) |
| typedef bool | IoWriteFunc(UPTRINT Handle, const void *Data, uint32 Size) |
| typedef void | IoCloseFunc(UPTRINT Handle) |
Enumerations | |
| enum | ETransport : uint8 { _Unused = 0 , Raw = 1 , Packet = 2 , TidPacket = 3 , TidPacketSync = 4 , Active = TidPacketSync } |
| enum | ETransportTid : uint32 { Events = 0 , Internal = 1 , Importants = Internal , Bias , End = 0x3ffe , Sync = 0x3fff } |
| enum | AnsiString |
| enum | WideString |
| enum class | EMessageType : uint8 { Reserved = 0 , Log , Info = Log , Display , WarningStart = 0x04 , ErrorStart = 0x10 , WriteError , ReadError , ConnectError , ListenError , EstablishError , FileOpenError , WriterError , CompressionError , FatalStart = 0x40 , GenericFatal , OOMFatal } |
Allocate memory callback
| Size | Size to allocate |
| Alignment | Alignment of memory |
| typedef bool UE::Trace::ChannelIterCallback(const FChannelInfo &Info, void *) |
The callback provides information about a channel and a user provided pointer.
| Info | Information about the channel |
| User | User data passed to the callback |
Free memory callback
| Ptr | Memory to free |
| Size | Size of memory to free |
User defined close callback.
| Handle | User defined handle passed to the function |
User defined write callback.
| Handle | User defined handle passed to the function |
| Data | Pointer to data to write |
| Size | Size of data to write |
| using UE::Trace::OnConnectFunc = typedef void(void) |
| using UE::Trace::OnMessageFunc = typedef void(const FMessageEvent&) |
| using UE::Trace::OnScopeBeginFunc = typedef void(const ANSICHAR*) |
| using UE::Trace::OnScopeEndFunc = typedef void(void) |
| using UE::Trace::OnUpdateFunc = typedef void(void) |
|
strong |
| UE_TRACE_API void UE::Trace::EnumerateChannels | ( | ChannelIterCallback | IterFunc, |
| void * | User | ||
| ) |
Enumerates registered channels.
| IterFunc | Function to call for each channel |
| User | Optional pointer to user data to pass to callback |
| UE_TRACE_API void UE::Trace::EnumerateChannels | ( | ChannelIterFunc | IterFunc, |
| void * | User | ||
| ) |
Enumerates registered channels.
| IterFunc | Function to call for each channel |
| User | Optional pointer to user data to pass to callback |
| UE_TRACE_API void UE::Trace::Exit | ( | ) |
Call when application is exiting. Notifies TraceLog that the worker thread can dissapear at any time and clears block pool limits. Tracing is still possible.
| UE_TRACE_API FChannel * UE::Trace::FindChannel | ( | const TCHAR * | ChannelName | ) |
Attempts to find the corresponding channel object given a channel name.
| ChannelName | Name to search for |
| UE_TRACE_API FChannel * UE::Trace::FindChannel | ( | FChannelId | ChannelId | ) |
Attempts to find the corresponding channel object given a channel id.
| ChannelId | Id to search for |
| UE_TRACE_API void UE::Trace::GetStatistics | ( | FStatistics & | Out | ) |
Fetches tracked telemetry from the library.
| Out | Pointer to struct where telemetry values will be written to. |
| UE_TRACE_API void UE::Trace::Initialize | ( | const FInitializeDesc & | Desc | ) |
Initalize TraceLog library.
| Desc | Initalization options |
| UE_TRACE_API bool UE::Trace::IsChannel | ( | const TCHAR * | ChannelName | ) |
Checks if a string is valid channel name.
| ChanelName | String to check |
| UE_TRACE_API bool UE::Trace::IsTracing | ( | ) |
Checks if TraceLog currently has an output. Note that trace events can still be recorded and saved in tail buffers regardless if an output is active.
| UE_TRACE_API bool UE::Trace::IsTracingTo | ( | uint32(&) | OutSessionGuid[4], |
| uint32(&) | OutTraceGuid[4] | ||
| ) |
Checks if TraceLog currently has an output and return session and trace GUIDs of active trace stream. Note that trace events can still be recorded and saved in tail buffers regardless if an output is active.
| OutSessionGuid | If output is active current session GUID will be written, otherwise it will be unchanged |
| OutTraceGuid | If output is active current trace GUID will be written, otherwise it will be unchanged |
| TEventRef< IdType > UE::Trace::MakeEventRef | ( | IdType | InId, |
| uint32 | InTypeId | ||
| ) |
| UE_TRACE_API void UE::Trace::Panic | ( | ) |
Notifies TraceLog about a critical failure. Disables all tracing by muting all channels.
| UE_TRACE_API bool UE::Trace::RelayTo | ( | UPTRINT | InHandle, |
| IoWriteFunc | WriteFunc, | ||
| IoCloseFunc | CloseFunc, | ||
| uint16 | Flags = FSendFlags::None |
||
| ) |
Setup TraceLog to output to user defined callback, to take effect next update. Will fail if another pending output has been queued.
| WriteFunc | Function to call when writing data |
| CloseFunc | Function to call when output is closed |
| Flags | Options for the connection |
| UE_TRACE_API bool UE::Trace::SendSnapshotTo | ( | const TCHAR * | Host, |
| uint32 | Port | ||
| ) |
Immediately write contents of tail buffers and important events to a remote host.
| Host | Target hostname or ip |
| Port | Target port |
| UE_TRACE_API bool UE::Trace::SendTo | ( | const TCHAR * | Host, |
| uint32 | Port = 0, |
||
| uint16 | Flags = FSendFlags::None |
||
| ) |
Setup TraceLog to output to remote host using a socket connection, to take effect next update. Will fail if another pending output has been queued or the host is unreachable.
| Host | Target hostname or ip |
| Port | Target port |
| Flags | Options for the connection |
| UE_TRACE_API void UE::Trace::SetMemoryHooks | ( | AllocFunc | Alloc, |
| FreeFunc | Free | ||
| ) |
Set optional allocation and free methods to use. If not set TraceLog will fall back to default platform allocation methods.
| Alloc | Callback for allocations |
| Free | Callback for free |
| UE_TRACE_API void UE::Trace::SetMessageCallback | ( | OnMessageFunc * | MessageFunc | ) |
Set optional callback to use for critical messages. See OnMessageFunc for details.
| MessageFunc | Function to call for critical messages |
| UE_TRACE_API void UE::Trace::SetUpdateCallback | ( | OnUpdateFunc * | UpdateFunc | ) |
Set optional on update callbacks. If set issued after every update and once after initalization.
| UpdateFunc | Function to call after every update |
| UE_TRACE_API void UE::Trace::Shutdown | ( | ) |
Shuts down the library completely and frees resources. After this tracing will not be possible.
| UE_TRACE_API void UE::Trace::StartWorkerThread | ( | ) |
Manually start worker thread if library is initalized without worker thread.
| UE_TRACE_API bool UE::Trace::Stop | ( | ) |
Stops current output if any is active.This will fail there is no active output or if there is already a queued output to be started.
| UE_TRACE_API void UE::Trace::ThreadGroupBegin | ( | const TCHAR * | Name | ) |
Define a group of threads with similar use. Any thread created within this call and /ref ThreadGroupEnd will be grouped together.
| Name | Display name of group |
| UE_TRACE_API void UE::Trace::ThreadGroupEnd | ( | ) |
End a group of threads with similar use. See /ref ThreadGroupBegin.
| UE_TRACE_API void UE::Trace::ThreadRegister | ( | const TCHAR * | Name, |
| uint32 | SystemId, | ||
| int32 | SortHint | ||
| ) |
| UE_TRACE_API bool UE::Trace::ToggleChannel | ( | const TCHAR * | ChannelName, |
| bool | bEnabled | ||
| ) |
Toggles channel to control output of events.
| ChanelName | Name of channel to control |
| bEnabled | Set if channel should be enabled or disabled |
| UE_TRACE_API void UE::Trace::Update | ( | ) |
Manually update TraceLog if no worker thread is running. Only one thread (including the worker thread) is able to enter the update method at any point.
| UE_TRACE_API bool UE::Trace::WriteSnapshotTo | ( | const TCHAR * | Path | ) |
Immediately write contents of tail buffers and important events to a new or existing file.
| Path | Target path |
| UE_TRACE_API bool UE::Trace::WriteTo | ( | const TCHAR * | Path, |
| uint16 | Flags = FSendFlags::None |
||
| ) |
Setup TraceLog to output to a new or existing file, to take effect next update. Will fail if another pending output has been queued or if the file location is not writeable.
| Path | Target path |
| Flags | Options for the connection |