TaskLoggingHelper.LogWarningFromException Method

Definition

Logs a warning using the message from the specified exception.

Overloads

LogWarningFromException(Exception)

Logs a warning using the message from the specified exception.

LogWarningFromException(Exception, Boolean)

Logs a warning using the message, and optionally the stack trace, from the given exception.

LogWarningFromException(Exception)

Logs a warning using the message from the specified exception.

public:
 void LogWarningFromException(Exception ^ exception);
public void LogWarningFromException (Exception exception);
member this.LogWarningFromException : Exception -> unit
Public Sub LogWarningFromException (exception As Exception)

Parameters

exception
Exception

The exception to log.

Exceptions

Remarks

This method is not thread-safe.

LogWarningFromException(Exception, Boolean)

Logs a warning using the message, and optionally the stack trace, from the given exception.

public:
 void LogWarningFromException(Exception ^ exception, bool showStackTrace);
public void LogWarningFromException (Exception exception, bool showStackTrace);
member this.LogWarningFromException : Exception * bool -> unit
Public Sub LogWarningFromException (exception As Exception, showStackTrace As Boolean)

Parameters

exception
Exception

The exception to log

showStackTrace
Boolean

true to include the stack trace in the log; otherwise, false.

Exceptions

Remarks

This method is not thread-safe.

Applies to