Struct ArgumentInfo
Parsed Argument/Hole data. See https://messagetemplates.org/ for Holes
Inherited Members
Namespace: Unity.Logging
Assembly: solution.dll
Syntax
public readonly struct ArgumentInfo
Constructors
Name | Description |
---|---|
ArgumentInfo(int, FixedString512Bytes, DestructingType, FixedString512Bytes, int) | Constructor of the ArgumentInfo |
Fields
Name | Description |
---|---|
Alignment | Alignment that is specified after ',' |
BuiltInLevelId | Builtin code for the level context argument |
BuiltInMessage | Builtin code for the message context argument |
BuiltInNewLine | Builtin code for the newline context argument |
BuiltInProperties | Builtin code for the properties context argument |
BuiltInStackTrace | Builtin code for the stacktrace context argument |
BuiltInTimestampId | Builtin code for the timestamp context argument |
Destructing | |
Format | Format that is specified after ':' |
Index | Indexed hole (if no Name was specified) |
IsValidByte | Non-Zero if created |
Name | Name of the hole |
Type | ArgumentInfo.HoleType of this hole. |
Properties
Name | Description |
---|---|
IsBuiltIn | True if the ArgumentInfo.HoleType is not built-in, but user defined. |
IsValid | True if created |
Methods
Name | Description |
---|---|
Number(int) | Create a hole from a number (index) |
ParseArgument(byte*, int, in ParseSegment) | Parses ArgumentInfo from UTF8 string's segment |
RetrieveContextArgumentIndex(in byte*, in ParseSegment, bool) | Returns an index of the context argument to use in WriteMessage or builtin code |