#include <StructuredLog.h>
◆ ConvertToCommonLog()
Converts this record into a common format string and compatible fields.
The common format string uses '{{' as a literal '{' and uses as a literal '}}'. The common format string contains no format specifiers or format argument modifiers. The common format string uses field names matching [A-Za-z0-9_]+.
When a compatible field is an object, it will have a string field named $text containing the formatted value. A compatible field will never be an array.
- Parameters
-
| OutFormat | Appended with a transformed version of the format from Template. |
| OutFields | Must be within an object scope. Appended with a compatible version of Fields. |
◆ FormatMessageTo() [1/2]
Formats the message using the format, template, and fields.
◆ FormatMessageTo() [2/2]
◆ GetCategory()
| const FName & UE::FLogRecord::GetCategory |
( |
| ) |
const |
|
inline |
The optional name of the category for the log record. None when omitted.
◆ GetFields()
| const FCbObject & UE::FLogRecord::GetFields |
( |
| ) |
const |
|
inline |
The fields referenced by the format string, along with optional additional fields.
◆ GetFile()
| const ANSICHAR * UE::FLogRecord::GetFile |
( |
| ) |
const |
|
inline |
The optional source file path for the code that created the log record. Null when omitted.
◆ GetFormat()
| const TCHAR * UE::FLogRecord::GetFormat |
( |
| ) |
const |
|
inline |
The format string that serves as the message for the log record. Example: TEXT("FieldName is {FieldName}")
◆ GetLine()
| int32 UE::FLogRecord::GetLine |
( |
| ) |
const |
|
inline |
The optional source line number for the code that created the log record. 0 when omitted.
◆ GetTemplate()
| const FLogTemplate * UE::FLogRecord::GetTemplate |
( |
| ) |
const |
|
inline |
The optional template for the format string.
◆ GetTextKey()
| const TCHAR * UE::FLogRecord::GetTextKey |
( |
| ) |
const |
|
inline |
The key of the localized text. Null when non-localized.
◆ GetTextNamespace()
| const TCHAR * UE::FLogRecord::GetTextNamespace |
( |
| ) |
const |
|
inline |
The namespace of the localized text. Null when non-localized.
◆ GetTime()
| const FLogTime & UE::FLogRecord::GetTime |
( |
| ) |
const |
|
inline |
The time at which the log record was created.
◆ GetVerbosity()
The verbosity level of the log record. Must be a valid level with no flags or special values.
◆ SetCategory()
| void UE::FLogRecord::SetCategory |
( |
const FName & |
InCategory | ) |
|
|
inline |
◆ SetFields()
◆ SetFile()
◆ SetFormat()
| void UE::FLogRecord::SetFormat |
( |
const TCHAR * |
InFormat | ) |
|
|
inline |
◆ SetLine()
◆ SetTemplate()
| void UE::FLogRecord::SetTemplate |
( |
const FLogTemplate * |
InTemplate | ) |
|
|
inline |
◆ SetTextKey()
| void UE::FLogRecord::SetTextKey |
( |
const TCHAR * |
InTextKey | ) |
|
|
inline |
◆ SetTextNamespace()
| void UE::FLogRecord::SetTextNamespace |
( |
const TCHAR * |
InTextNamespace | ) |
|
|
inline |
◆ SetTime()
◆ SetVerbosity()
The documentation for this class was generated from the following files: