# exportToHtml method

String exportToHtml(

1. bool debug

)

Exports a representation of the log, in HTML format.

param debug Indicates whether debug information is added to the log. return The result. throws BiosealException An error has occurred during Bioseal Library execution.

## Implementation

    String exportToHtml(bool debug) {
      Pointer<Char> pResult = nullptr;
      Pointer<Int> pResultSize = calloc.allocate(1);
      pResultSize[0] = -1;
      try {
        var err = biosealSDK.id3BiosealLog_ExportToHtml(_pHandle.value, debug, pResult, pResultSize);
        if (err == BiosealError.insufficientBuffer.value) {
          pResult = calloc.allocate(pResultSize.value);
          err = biosealSDK.id3BiosealLog_ExportToHtml(_pHandle.value, debug, pResult, pResultSize);
          if (err != BiosealError.success.value) {
            throw BiosealException(err);
          }
        }
        final vResult = utf8.decode(Uint8List.fromList(pResult.cast<Uint8>().asTypedList(pResultSize.value)));
        return vResult;
      } finally {
        calloc.free(pResult);
        calloc.free(pResultSize);
      }
    }