Interface ILogMessage
Interface representing a log message.
Assembly: Dalamud.dll
public interface ILogMessage : IEquatable<ILogMessage>
Properties
Address
Gets the address of the log message in memory.
nint Address { get; }
LogMessageId
Gets the ID of this log message.
uint LogMessageId { get; }
GameData
Gets the GameData associated with this log message.
RowRef<LogMessage> GameData { get; }
SourceEntity
Gets the entity that is the source of this log message, if any.
ILogMessageEntity? SourceEntity { get; }
TargetEntity
Gets the entity that is the target of this log message, if any.
ILogMessageEntity? TargetEntity { get; }
ParameterCount
Gets the number of parameters.
int ParameterCount { get; }
Methods
TryGetIntParameter(int, out int)
Retrieves the value of a parameter for the log message if it is an int.
bool TryGetIntParameter(int index, out int value)
Returns
System.Boolean: true if the parameter was retrieved successfully.
Parameters
| Type | Name | Description |
|---|---|---|
System.Int32 | index | The index of the parameter to retrieve. |
System.Int32 | value | The value of the parameter. |
TryGetStringParameter(int, out ReadOnlySeString)
Retrieves the value of a parameter for the log message if it is a string.
bool TryGetStringParameter(int index, out ReadOnlySeString value)
Returns
System.Boolean: true if the parameter was retrieved successfully.
Parameters
| Type | Name | Description |
|---|---|---|
System.Int32 | index | The index of the parameter to retrieve. |
Lumina.Text.ReadOnly.ReadOnlySeString | value | The value of the parameter. |
FormatLogMessageForDebugging()
Formats this log message into an approximation of the string that will eventually be shown in the log.
ReadOnlySeString FormatLogMessageForDebugging()
Returns
Lumina.Text.ReadOnly.ReadOnlySeString: The formatted string.