Writes a stack backtrace to the logging handler (if registered).
The output of this method is system-specific.