Skip to main content
Version: 14.x (API 14) [Current]

Interface ILogMessage

Interface representing a log message.

Assembly: Dalamud.dll
Declaration
public interface ILogMessage : IEquatable<ILogMessage>

Properties

Address

Gets the address of the log message in memory.

Declaration
nint Address { get; }

LogMessageId

Gets the ID of this log message.

Declaration
uint LogMessageId { get; }

GameData

Gets the GameData associated with this log message.

Declaration
RowRef<LogMessage> GameData { get; }

SourceEntity

Gets the entity that is the source of this log message, if any.

Declaration
ILogMessageEntity? SourceEntity { get; }

TargetEntity

Gets the entity that is the target of this log message, if any.

Declaration
ILogMessageEntity? TargetEntity { get; }

ParameterCount

Gets the number of parameters.

Declaration
int ParameterCount { get; }

Methods

TryGetIntParameter(int, out int)

Retrieves the value of a parameter for the log message if it is an int.

Declaration
bool TryGetIntParameter(int index, out int value)
Returns

System.Boolean: true if the parameter was retrieved successfully.

Parameters
TypeNameDescription
System.Int32indexThe index of the parameter to retrieve.
System.Int32valueThe value of the parameter.

TryGetStringParameter(int, out ReadOnlySeString)

Retrieves the value of a parameter for the log message if it is a string.

Declaration
bool TryGetStringParameter(int index, out ReadOnlySeString value)
Returns

System.Boolean: true if the parameter was retrieved successfully.

Parameters
TypeNameDescription
System.Int32indexThe index of the parameter to retrieve.
Lumina.Text.ReadOnly.ReadOnlySeStringvalueThe value of the parameter.

FormatLogMessageForDebugging()

Formats this log message into an approximation of the string that will eventually be shown in the log.

Declaration
ReadOnlySeString FormatLogMessageForDebugging()
Returns

Lumina.Text.ReadOnly.ReadOnlySeString: The formatted string.