<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _writeTracebackMessage(logger, typ, exception, traceback):
 """ Write a traceback to the log. @param typ: The class of the exception. @param exception: The L{Exception} instance. @param traceback: The traceback, a C{str}. """

    msg = TRACEBACK_MESSAGE(
        reason=exception, traceback=traceback, exception=typ)
    msg = msg.bind(
        **_error_extraction.get_fields_for_exception(logger, exception))
    msg.write(logger)