EAPUtilFormatExceptionForRequestLog Method |
Returns a formatted string from an exception where that string is intended for logging
to the xot_request_log and is appropriate for developers.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static string FormatExceptionForRequestLog(
Exception ex,
bool includeStackTrace = false
)
Public Shared Function FormatExceptionForRequestLog (
ex As Exception,
Optional includeStackTrace As Boolean = false
) As String
Parameters
- ex
- Type: SystemException
The exception. - includeStackTrace (Optional)
- Type: SystemBoolean
Optionally include the stack trace in the log, default is to not include the trace.
Return Value
Type:
StringThe formatted error message.
See Also