Method
LogStreamEntry.ToString
ToString() #
Returns a string representation of the log entry in the default format.
public override string ToString()Returns #
A string containing the moment, level, and message.
ToString(string?, IFormatProvider?) #
Returns a string representation of the log entry using the specified format string and format provider.
public string ToString(string? format, IFormatProvider? formatProvider)Parameters #
format string?
A format string containing placeholders (%moment, %level, %message).
formatProvider IFormatProvider?
An object that supplies culture-specific formatting information.
Returns #
A formatted string representation of the log entry.