Home > @magiclane/maps-sdk > LogUploader

LogUploader class

Uploads a recorded log file to Magic Lane servers for bug reports.

LogUploader sends .gm or .mp4 recordings to Magic Lane backends and reports progress and status updates through the optional callback provided at construction.

Use this class to programmatically upload logs for diagnostics or bug reporting.

Sensor Data Source

Signature:

export declare class LogUploader extends GemAutoreleaseObject 

Extends: GemAutoreleaseObject

Methods

Method

Modifiers

Description

cancel(logPath)

Cancels an ongoing upload for the specified log file.

The cancel request will trigger status updates via the onLogStatusChanged callback passed to the LogUploader constructor.

create(options)

static

Creates a LogUploader instance.

The optional onLogStatusChanged callback receives status updates during the lifecycle of an upload.

dispose()

Disposes of the uploader and cleans up resources.

upload(options)

Starts uploading a log file to the server.

Initiates an upload operation; progress and final status are reported via the onLogStatusChanged callback supplied when the LogUploader was created.