BloombergLP::bslstl::StdExceptUtil::logCheapStackTrace

Log "About to throw ", then the specified exceptionName, then the specified message, then log a cheap stack trace with warning severity. This function is intended as a candidate for setting to the pre-throw hooks. Note that a far slower alternative to this, which logs a full, multi-line stack trace with resolved symbols and, on many platforms, line numbers and source file names, is balst::StackTracePrintUtil::logExceptionStackTrace.

Synopsis

Declared in <bslstl_stdexceptutil.h>

static
void
logCheapStackTrace(
    char const* exceptionName,
    char const* message);