Property
PrefixedLogStream.PrefixFunction
PrefixFunction #
Gets or sets a function that returns the prefix to be added to log messages.
public Func<string?> PrefixFunction { get; set; }Property Value #
Remarks #
The assigned function should return the desired prefix as a string. If the function returns null, it is treated as an empty string in most scenarios.