[#BloombergLP-balst-StackTracePrintUtil-logExceptionStackTrace] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balst.adoc[balst]::xref:BloombergLP/balst/StackTracePrintUtil.adoc[StackTracePrintUtil]::logExceptionStackTrace :relfileprefix: ../../../ :mrdocs: Log a message using `BSLS_LOG` consisting of "About to throw <exceptionName>. <message>" followed by a stack trace. This function is to be set as an exception "pre throw hook" for the component `bslstl_stdexceptutil`. If this funciton is set as the pre throw hook, it will be called prior to exceptions being thrown, Note that this function requires considerable disk access and is therefore slow, so it should not be used for frequently‐occurring exceptions that are expected to be caught and recovered from. == Synopsis Declared in `<balst_stacktraceprintutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void logExceptionStackTrace( char const* exceptionName, char const* message); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#