Skip to content

Applies to

net11.0, net10.0, net471, net47, net472, net48, net481

Overloads

  1. public void DebugException(string? message, Exception exception)

  2. public void DebugException(Func<string> function, Exception exception)

1. Overload

public void DebugException(string? message, Exception exception)

View source (opens in a new tab)

Inherited documentation

These docs were inherited from IFullLogger. The member doesn't override them on this type.

Summary: Emits a debug log message. This will emit details about a exception. This type of logging is not able to be localized.

Parameters

NameTypeDescription
messagestring? (opens in a new tab)A message to emit.
exceptionException (opens in a new tab)The exception which to emit in the log.

2. Overload

public void DebugException(Func<string> function, Exception exception)

View source (opens in a new tab)

Inherited documentation

These docs were inherited from IFullLogger. The member doesn't override them on this type.

Summary: Sends the value provided by the provided delegate, only if Debug is enabled.

Parameters

NameTypeDescription
functionFunc (opens in a new tab)The function to evaluate if Debug logging is enabled.
exceptionException (opens in a new tab)A exception to log about.