Function logException
Logs an exception, including a debug stack trace.
void logException(LogLevel level = LogLevel .error, string file = __FILE__, int line = __LINE__)
(
Throwable exception,
string error_description
) nothrow @safe;
Example
void test() nothrow
{
try {
throw new Exception("Something failed!");
} catch (Exception e) {
logException(e, "Failed to carry out some operation");
}
}