logException

Logs an exception, including a debug stack trace.

@safe nothrow
void
logException
(
Throwable exception
,,
string mod = __MODULE__
,
string func = __FUNCTION__
,
string file = __FILE__
,
int line = __LINE__
)

Examples

void test() nothrow
{
	try {
		throw new Exception("Something failed!");
	} catch (Exception e) {
		logException(e, "Failed to carry out some operation");
	}
}

Meta