LogCallback LogCallback LogCallback Delegate

Definition

Callback delegate that allows the developer to consume logs handle them in a custom manner.

public delegate void LogCallback(LogLevel level, string message, bool containsPii);
type LogCallback = delegate of LogLevel * string * bool -> unit
Public Delegate Sub LogCallback(level As LogLevel, message As String, containsPii As Boolean)

Parameters

level
LogLevel LogLevel LogLevel

Log level of the message

message
String String String

Pre-formatted log message

containsPii
Boolean Boolean Boolean

Indicates if the log message contains PII. If Logger.PiiLoggingEnabled is set to false then this value is always false.

Inheritance
LogCallbackLogCallbackLogCallback

Applies to